Skip to content

Commit

Permalink
CI: Ensure GHA uses major versions of actions (#45355)
Browse files Browse the repository at this point in the history
* CI: Ensure GHA uses major versions of actions

* precommit cant refernce most recent version?
  • Loading branch information
mroeschke authored Jan 14, 2022
1 parent 83ea173 commit 96f2f2a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/asv-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ 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}}
with:
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,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/comment_bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
4 changes: 2 additions & 2 deletions .github/workflows/posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 96f2f2a

Please sign in to comment.