From 96f2f2aff10666aa2b8118174a3f39a2e88a0bf4 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke Date: Fri, 14 Jan 2022 09:32:17 -0800 Subject: [PATCH] CI: Ensure GHA uses major versions of actions (#45355) * CI: Ensure GHA uses major versions of actions * precommit cant refernce most recent version? --- .github/workflows/asv-bot.yml | 4 ++-- .github/workflows/code-checks.yml | 2 +- .github/workflows/comment_bot.yml | 4 ++-- .github/workflows/posix.yml | 4 ++-- .github/workflows/python-dev.yml | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/asv-bot.yml b/.github/workflows/asv-bot.yml index ad2e2b4278dd2..f3946aeb84a63 100644 --- a/.github/workflows/asv-bot.yml +++ b/.github/workflows/asv-bot.yml @@ -65,7 +65,7 @@ jobs: echo 'EOF' >> $GITHUB_ENV echo "REGEX=$REGEX" >> $GITHUB_ENV - - uses: actions/github-script@v4 + - uses: actions/github-script@v5 env: BENCH_OUTPUT: ${{env.BENCH_OUTPUT}} REGEX: ${{env.REGEX}} @@ -73,7 +73,7 @@ jobs: script: | const ENV_VARS = process.env const run_url = `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}` - github.issues.createComment({ + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 838143deafb03..7141b02cac376 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -151,7 +151,7 @@ jobs: if: ${{ steps.build.outcome == 'success' }} - name: Publish benchmarks artifact - uses: actions/upload-artifact@master + uses: actions/upload-artifact@v2 with: name: Benchmarks log path: asv_bench/benchmarks.log diff --git a/.github/workflows/comment_bot.yml b/.github/workflows/comment_bot.yml index 24f8d5d0116c5..8f610fd5781ef 100644 --- a/.github/workflows/comment_bot.yml +++ b/.github/workflows/comment_bot.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: r-lib/actions/pr-fetch@master + - uses: r-lib/actions/pr-fetch@v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Cache multiple paths @@ -35,6 +35,6 @@ jobs: git config user.name "$(git log -1 --pretty=format:%an)" git config user.email "$(git log -1 --pretty=format:%ae)" git commit -a -m 'Fixes from pre-commit [automated commit]' || echo "No changes to commit" - - uses: r-lib/actions/pr-push@master + - uses: r-lib/actions/pr-push@v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index 3e034ec9460a0..a3d3f316e06cd 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -120,7 +120,7 @@ jobs: if: ${{ env.IS_PYPY == 'false' }} # No pypy3.8 support - name: Setup PyPy - uses: actions/setup-python@v2.3.1 + uses: actions/setup-python@v2 with: python-version: "pypy-3.8" if: ${{ env.IS_PYPY == 'true' }} @@ -146,7 +146,7 @@ jobs: run: pushd /tmp && python -c "import pandas; pandas.show_versions();" && popd - name: Publish test results - uses: actions/upload-artifact@master + uses: actions/upload-artifact@v2 with: name: Test results path: test-data.xml diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 3f9ea2aac22c7..37d8b8474d962 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -70,7 +70,7 @@ jobs: ci/run_tests.sh - name: Publish test results - uses: actions/upload-artifact@master + uses: actions/upload-artifact@v2 with: name: Test results path: test-data.xml