From a3652e3f2fe762cd216463ce81407880623fa386 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Tue, 24 Dec 2024 11:44:15 -0500 Subject: [PATCH] chore: upgrade actions to latest versions --- .github/workflows/checks.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index ad67e6bb2..e528819f0 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -9,15 +9,32 @@ jobs: name: Tidy PR if: github.event_name == 'pull_request' permissions: - contents: read # for TimonVS/pr-labeler-action to read config file + contents: write # for TimonVS/pr-labeler-action to read config file pull-requests: write # for TimonVS/pr-labeler-action to add labels in PR runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Required to fetch all history for merging + + - name: Update PR with master + run: | + git config user.name github-actions + git config user.email github-actions@github.com + git fetch origin master + git merge origin/master --no-edit + git push + - uses: TimonVS/pr-labeler-action@v5 with: repo-token: ${{ secrets.GITHUB_TOKEN }} configuration-path: .github/pr-labeler.yml # optional, .github/pr-labeler.yml is the default value + - name: AI PR Body Generator + uses: jbrocher/auto-pr-body-generator@v0.2.2 + with: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + test-builds: if: github.event_name == 'pull_request' runs-on: ubuntu-latest