Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Upgrade peter evans actions (#74737)

Nemanja Glumacf0cbdaf5f844
diff --git a/.github/actions/create-backport/action.yml b/.github/actions/create-backport/action.yml
index 53315476af1..04e63d4beaa 100644
--- a/.github/actions/create-backport/action.yml
+++ b/.github/actions/create-backport/action.yml
@@ -84,18 +84,18 @@ runs:
- name: Auto approve backport PR
if: ${{ steps.create_backport_pull_request.outputs.has-conflicts == 'false' }}
- uses: juliangruber/approve-pull-request-action@v1
+ uses: juliangruber/approve-pull-request-action@68fcc9a5a73b5641cadf757cf99d73720dcb05d0 # v2.1.0
with:
github-token: ${{ inputs.github-token-2 }}
number: ${{ steps.create_backport_pull_request.outputs.backport_pr_number }}
- name: Enable Pull Request Automerge
if: ${{ steps.create_backport_pull_request.outputs.has-conflicts == 'false' }}
- uses: peter-evans/enable-pull-request-automerge@v2
- with:
- token: ${{ inputs.github-token }}
- pull-request-number: ${{ steps.create_backport_pull_request.outputs.backport_pr_number }}
- merge-method: squash
+ run: gh pr merge --squash --auto "$PR_NUMBER"
+ shell: bash
+ env:
+ GH_TOKEN: ${{ inputs.github-token }}
+ PR_NUMBER: ${{ steps.create_backport_pull_request.outputs.backport_pr_number }}
- uses: ./.github/actions/notify-pull-request
if: ${{ steps.create_backport_pull_request.outputs.has-conflicts == 'true' }}
diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml
index 96568d6b266..3044c7dc24d 100644
--- a/.github/workflows/codespell.yml
+++ b/.github/workflows/codespell.yml
@@ -83,7 +83,7 @@ jobs:
- name: Create Pull Request
if: steps.codespell_check.outcome == 'failure'
- uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6
+ uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: claude-fix/codespell-${{ steps.date.outputs.date }}
diff --git a/.github/workflows/translation-update.yml b/.github/workflows/translation-update.yml
index ad1bf55c7de..9c90211bbc2 100644
--- a/.github/workflows/translation-update.yml
+++ b/.github/workflows/translation-update.yml
@@ -145,14 +145,13 @@ jobs:
)"
- name: Auto approve PR
- uses: juliangruber/approve-pull-request-action@f83b836abaed1b3ab639ae61f9117c52ae405f65 # v1
+ uses: juliangruber/approve-pull-request-action@68fcc9a5a73b5641cadf757cf99d73720dcb05d0 # v2.1.0
with:
github-token: ${{ github.token }}
number: ${{ steps.create_pr.outputs.pr_number }}
- name: Enable Pull Request Automerge
- uses: peter-evans/enable-pull-request-automerge@684fed02ccc9b5eefcf7d40b65b3cd44255bd5bc # v2
- with:
- token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}
- pull-request-number: ${{ steps.create_pr.outputs.pr_number }}
- merge-method: squash
+ run: gh pr merge --squash --auto "$PR_NUMBER"
+ env:
+ GH_TOKEN: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}
+ PR_NUMBER: ${{ steps.create_pr.outputs.pr_number }}
diff --git a/.github/workflows/update-e2e-timings.yml b/.github/workflows/update-e2e-timings.yml
index 5e4bcab41d6..486d6b1bffa 100644
--- a/.github/workflows/update-e2e-timings.yml
+++ b/.github/workflows/update-e2e-timings.yml
@@ -65,7 +65,7 @@ jobs:
echo "Branch name will be: $BRANCH_NAME"
- name: Create Pull Request
- uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6
+ uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
token: ${{ steps.app-token.outputs.token }}
branch: ${{ env.BRANCH_NAME }}