Skip to content

Commit

Permalink
Merge pull request #1012 from vrc-get/unuse-environment-on-labeler
Browse files Browse the repository at this point in the history
ci: do not use actions-github-app environment in labeler and rename secrets
  • Loading branch information
anatawa12 committed May 20, 2024
2 parents b358446 + 3f37858 commit 9a416fc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ jobs:
contents: read
pull-requests: write
runs-on: ubuntu-latest
environment:
name: actions-github-app
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: actions/labeler@v5
with:
repo-token: ${{ steps.app-token.outputs.token }}
4 changes: 2 additions & 2 deletions .github/workflows/publish-gui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ jobs:
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
ref: 'releasing'
Expand Down Expand Up @@ -403,7 +403,7 @@ jobs:
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
owner: vrc-get
repositories: vrc-get.anatawa12.com
- uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-litedb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
name: crates.io
url: https://crates.io/crates/vrc-get
runs-on: ubuntu-latest
needs: [pre-build]
needs: [ pre-build ]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -113,15 +113,15 @@ jobs:
permissions:
contents: write
runs-on: ubuntu-latest
needs: [pre-build, publish-crates-io]
needs: [ pre-build, publish-crates-io ]
env:
LITEDB_VERSION: ${{ needs.pre-build.outputs.litedb-version }}
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
ref: 'releasing'
Expand Down Expand Up @@ -160,7 +160,7 @@ jobs:
permissions:
contents: write
runs-on: ubuntu-latest
needs:
needs:
- pre-build
- publish-crates-io
- publish-to-github
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ jobs:
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
ref: 'releasing'
Expand Down

0 comments on commit 9a416fc

Please sign in to comment.