Skip to content

Commit

Permalink
ci: Replace usage of deprecated Action inputs
Browse files Browse the repository at this point in the history
Addresses the following warning in workflow runs:

  Warning: Input 'app_id' has been deprecated with message: 'app_id' is
  deprecated and will be removed in a future version. Use 'app-id'
  instead.

Ref. actions/create-github-app-token#59
  • Loading branch information
antoineco committed Sep 15, 2024
1 parent e8a5397 commit de57b24
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
uses: actions/create-github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Approve and merge
uses: ridedott/merge-me-action@v2
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,19 @@ jobs:
if [[ ${git_status} ]]; then
echo -e 'Changes to be committed:\n'
echo "${git_status}"
echo 'has_changes=true' >>"$GITHUB_OUTPUT"
echo 'has-changes=true' >>"$GITHUB_OUTPUT"
fi
- name: Impersonate update bot
uses: actions/create-github-app-token@v1
id: generate-token
if: steps.update-files.outputs.has_changes
if: steps.update-files.outputs.has-changes
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Send pull request to update to new version
if: steps.update-files.outputs.has_changes
if: steps.update-files.outputs.has-changes
uses: peter-evans/create-pull-request@v7
with:
token: ${{ steps.generate-token.outputs.token }}
Expand Down

0 comments on commit de57b24

Please sign in to comment.