Skip to content

Commit

Permalink
Update some gh workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
SageSphinx63920 committed Oct 18, 2024
1 parent 0a61f35 commit 6123296
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/api-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
- name: Publish to GitHub Packages
run: ./gradlew publishNewRelease
env:
KEKLIST_REPO_USER: ${{ vars.KEKLIST_USER }}
KEKLIST_REPO_PASSWORD: ${{ secrets.KEKLIST_PASSWORD }}
KEKLIST_REPO_USER: ${{ vars.KEKLIST_REPO_USER }}
KEKLIST_REPO_PASSWORD: ${{ secrets.KEKLIST_REPO_PASSWORD }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
HANGAR_API_TOKEN: ${{ secrets.HANGAR_API_TOKEN }}

Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/crowding-delete-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Translations
on: workflow_dispatch
# [delete, workflow_dispatch]

permissions:
contents: write
pull-requests: write

jobs:
delete-old:
runs-on: ubuntu-latest
Expand All @@ -23,6 +27,6 @@ jobs:
command: 'branch delete ${{ steps.gh_branch.outputs.branch }}'
command_args: '-l uk --method tm --branch main'
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ vars.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
6 changes: 5 additions & 1 deletion .github/workflows/translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
- 'src/main/resources/assets/lang/en-us.json'
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
upload:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -33,7 +37,7 @@ jobs:
project_id: ${{ vars.CROWDIN_PROJECT_ID }}
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down

0 comments on commit 6123296

Please sign in to comment.