Skip to content

Commit 96f2f2a

Browse files
authored
CI: Ensure GHA uses major versions of actions (#45355)
* CI: Ensure GHA uses major versions of actions * precommit cant refernce most recent version?
1 parent 83ea173 commit 96f2f2a

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.github/workflows/asv-bot.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ jobs:
6565
echo 'EOF' >> $GITHUB_ENV
6666
echo "REGEX=$REGEX" >> $GITHUB_ENV
6767
68-
- uses: actions/github-script@v4
68+
- uses: actions/github-script@v5
6969
env:
7070
BENCH_OUTPUT: ${{env.BENCH_OUTPUT}}
7171
REGEX: ${{env.REGEX}}
7272
with:
7373
script: |
7474
const ENV_VARS = process.env
7575
const run_url = `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`
76-
github.issues.createComment({
76+
github.rest.issues.createComment({
7777
issue_number: context.issue.number,
7878
owner: context.repo.owner,
7979
repo: context.repo.repo,

.github/workflows/code-checks.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ jobs:
151151
if: ${{ steps.build.outcome == 'success' }}
152152

153153
- name: Publish benchmarks artifact
154-
uses: actions/upload-artifact@master
154+
uses: actions/upload-artifact@v2
155155
with:
156156
name: Benchmarks log
157157
path: asv_bench/benchmarks.log

.github/workflows/comment_bot.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v2
16-
- uses: r-lib/actions/pr-fetch@master
16+
- uses: r-lib/actions/pr-fetch@v2
1717
with:
1818
repo-token: ${{ secrets.GITHUB_TOKEN }}
1919
- name: Cache multiple paths
@@ -35,6 +35,6 @@ jobs:
3535
git config user.name "$(git log -1 --pretty=format:%an)"
3636
git config user.email "$(git log -1 --pretty=format:%ae)"
3737
git commit -a -m 'Fixes from pre-commit [automated commit]' || echo "No changes to commit"
38-
- uses: r-lib/actions/pr-push@master
38+
- uses: r-lib/actions/pr-push@v2
3939
with:
4040
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/posix.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
if: ${{ env.IS_PYPY == 'false' }} # No pypy3.8 support
121121

122122
- name: Setup PyPy
123-
uses: actions/setup-python@v2.3.1
123+
uses: actions/setup-python@v2
124124
with:
125125
python-version: "pypy-3.8"
126126
if: ${{ env.IS_PYPY == 'true' }}
@@ -146,7 +146,7 @@ jobs:
146146
run: pushd /tmp && python -c "import pandas; pandas.show_versions();" && popd
147147

148148
- name: Publish test results
149-
uses: actions/upload-artifact@master
149+
uses: actions/upload-artifact@v2
150150
with:
151151
name: Test results
152152
path: test-data.xml

.github/workflows/python-dev.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
ci/run_tests.sh
7171
7272
- name: Publish test results
73-
uses: actions/upload-artifact@master
73+
uses: actions/upload-artifact@v2
7474
with:
7575
name: Test results
7676
path: test-data.xml

0 commit comments

Comments
 (0)