Skip to content

Commit

Permalink
Follow updated APP_ID instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jun 11, 2024
1 parent 4eacd11 commit 9f9593b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bump-flake-lock-and-selfup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
uses: ./.github/workflows/reusable-bump-flake-lock-and-selfup.yml
if: (github.event.sender.login == 'kachick') || (github.event_name != 'pull_request')
with:
app_id: ${{ vars.APP_ID }}
dry-run: ${{ github.event_name == 'pull_request' }}
optional-run: |
echo 'Add another changes and git commit here, especially for .node-version/.ruby-version'
secrets:
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
8 changes: 5 additions & 3 deletions .github/workflows/reusable-bump-flake-lock-and-selfup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ on:
optional-run:
required: false
type: string
secrets:
APP_ID:
app_id:
required: true
type: string
secrets:
APP_PRIVATE_KEY:
required: true

Expand All @@ -53,7 +54,8 @@ jobs:
uses: actions/create-github-app-token@c8f55efbd427e7465d6da1106e7979bc8aaee856 # v1.10.1
with:
# Required to set workflow permission for the APP
app-id: ${{ secrets.APP_ID }}
# Why replaced from secrets?: https://github.com/github/docs/commit/eaac671cdd9189afd410366e9eb5edd4ee815194#diff-19d2b329775bf781d0cf19fabafa7f231bd85f133cbf9e23594036ea68f7021dL53-R54
app-id: ${{ inputs.app_id }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
Expand Down

0 comments on commit 9f9593b

Please sign in to comment.