From 9fbe679bddc686901bb573fe41e835359f8c5232 Mon Sep 17 00:00:00 2001 From: Benjy Weinberger Date: Tue, 10 Dec 2024 13:07:49 -0800 Subject: [PATCH] Upgrade various github actions. In particular, @v3 of upload-artifact and download-artifact will soon fail. --- .github/workflows/auto-cherry-picker.yaml | 8 ++++---- .github/workflows/release.yaml | 2 +- src/python/pants_release/generate_github_workflows.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/auto-cherry-picker.yaml b/.github/workflows/auto-cherry-picker.yaml index fb79e068eb7..b5bb445348d 100644 --- a/.github/workflows/auto-cherry-picker.yaml +++ b/.github/workflows/auto-cherry-picker.yaml @@ -23,11 +23,11 @@ jobs: merge_commit: ${{ steps.get-prereqs.outputs.merge_commit }} matrix: ${{ steps.get-prereqs.outputs.matrix }} steps: - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 16 - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - run: npm install ./build-support/cherry_pick - id: get-prereqs name: Get Cherry-Pick prerequisites @@ -60,7 +60,7 @@ jobs: include: ${{ fromJSON(needs.prerequisites.outputs.matrix) }} steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: token: ${{ secrets.WORKER_PANTS_CHERRY_PICK_PAT }} - name: Prepare cherry-pick branch @@ -113,7 +113,7 @@ jobs: if: needs.prerequisites.result == 'success' && (success() || failure()) steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - run: npm install ./build-support/cherry_pick - name: Run Script uses: actions/github-script@v6 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 939eef23e4d..cf3eac16660 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -438,7 +438,7 @@ jobs: channel-id: C18RRR4JK payload-file-path: ${{ runner.temp }}/slack_announcement.json - name: Announce to pants-devel - uses: dawidd6/action-send-mail@v3.8.0 + uses: dawidd6/action-send-mail@v4 with: body: file://${{ runner.temp }}/email_announcement_body.md connection_url: ${{ secrets.EMAIL_CONNECTION_URL }} diff --git a/src/python/pants_release/generate_github_workflows.py b/src/python/pants_release/generate_github_workflows.py index 09257a75fab..6e2189fee04 100644 --- a/src/python/pants_release/generate_github_workflows.py +++ b/src/python/pants_release/generate_github_workflows.py @@ -22,7 +22,7 @@ def action(name: str) -> str: version_map = { - "action-send-mail": "dawidd6/action-send-mail@v3.8.0", + "action-send-mail": "dawidd6/action-send-mail@v4", "cache": "actions/cache@v4", "checkout": "actions/checkout@v4", "download-artifact": "actions/download-artifact@v4",