From de57b24f8c915d8bc5b2b5ca040466a5050ca119 Mon Sep 17 00:00:00 2001 From: Antoine Cotten Date: Sun, 15 Sep 2024 08:53:30 +0000 Subject: [PATCH] ci: Replace usage of deprecated Action inputs 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 --- .github/workflows/update-merge.yml | 4 ++-- .github/workflows/update.yml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/update-merge.yml b/.github/workflows/update-merge.yml index 9df279898..b7670b1fe 100644 --- a/.github/workflows/update-merge.yml +++ b/.github/workflows/update-merge.yml @@ -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 diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 652287b16..09752dae5 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -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 }}