Skip to content

Commit

Permalink
gha: Dropped minor/patch version pinning of actions
Browse files Browse the repository at this point in the history
With GitHub forcibly deprecating old versions of actions, pinning the
minor/patch version is more likely to cause breakage than not.
  • Loading branch information
geky committed Sep 20, 2024
1 parent 7db9e16 commit 798073c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 32 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
github.event.workflow_run.head_sha == github.sha}}

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
with:
ref: ${{github.event.workflow_run.head_sha}}
# need workflow access since we push branches
Expand All @@ -30,23 +30,23 @@ jobs:
fetch-depth: 0

# try to get results from tests
- uses: actions/download-artifact@v4.1.8
- uses: actions/download-artifact@v4
continue-on-error: true
with:
github-token: ${{secrets.GITHUB_TOKEN}}
run-id: ${{github.event.workflow_run.id}}
pattern: '{sizes,sizes-*}'
merge-multiple: true
path: sizes
- uses: actions/download-artifact@v4.1.8
- uses: actions/download-artifact@v4
continue-on-error: true
with:
github-token: ${{secrets.GITHUB_TOKEN}}
run-id: ${{github.event.workflow_run.id}}
pattern: '{cov,cov-*}'
merge-multiple: true
path: cov
- uses: actions/download-artifact@v4.1.8
- uses: actions/download-artifact@v4
continue-on-error: true
with:
github-token: ${{secrets.GITHUB_TOKEN}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
status:
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4.1.8
- uses: actions/download-artifact@v4
continue-on-error: true
with:
github-token: ${{secrets.GITHUB_TOKEN}}
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:

steps:
# generated comment?
- uses: actions/download-artifact@v4.1.8
- uses: actions/download-artifact@v4
continue-on-error: true
with:
github-token: ${{secrets.GITHUB_TOKEN}}
Expand Down
52 changes: 26 additions & 26 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
arch: [x86_64, thumb, mips, powerpc]

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
- name: install
run: |
# need a few things
Expand Down Expand Up @@ -235,7 +235,7 @@ jobs:
# create size statuses
- name: upload-sizes
uses: actions/upload-artifact@v4.4.0
uses: actions/upload-artifact@v4
with:
name: sizes-${{matrix.arch}}
path: sizes
Expand Down Expand Up @@ -274,7 +274,7 @@ jobs:
done
- name: upload-status-sizes
if: ${{matrix.arch == 'x86_64'}}
uses: actions/upload-artifact@v4.4.0
uses: actions/upload-artifact@v4
with:
name: status-sizes-${{matrix.arch}}
path: status
Expand All @@ -283,7 +283,7 @@ jobs:
# create cov statuses
- name: upload-cov
if: ${{matrix.arch == 'x86_64'}}
uses: actions/upload-artifact@v4.4.0
uses: actions/upload-artifact@v4
with:
name: cov
path: cov
Expand Down Expand Up @@ -320,7 +320,7 @@ jobs:
done
- name: upload-status-cov
if: ${{matrix.arch == 'x86_64'}}
uses: actions/upload-artifact@v4.4.0
uses: actions/upload-artifact@v4
with:
name: status-cov
path: status
Expand All @@ -337,7 +337,7 @@ jobs:
pls: [1, 2]

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
- name: install
run: |
# need a few things
Expand All @@ -362,7 +362,7 @@ jobs:
test-no-intrinsics:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
- name: install
run: |
# need a few things
Expand All @@ -379,7 +379,7 @@ jobs:
test-multiversion:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
- name: install
run: |
# need a few things
Expand All @@ -396,7 +396,7 @@ jobs:
test-lfs2_0:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
- name: install
run: |
# need a few things
Expand All @@ -415,7 +415,7 @@ jobs:
test-valgrind:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
- name: install
run: |
# need a few things
Expand All @@ -437,7 +437,7 @@ jobs:
test-clang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
- name: install
run: |
# need a few things
Expand All @@ -460,7 +460,7 @@ jobs:
bench:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
- name: install
run: |
# need a few things
Expand Down Expand Up @@ -492,7 +492,7 @@ jobs:
# create bench statuses
- name: upload-bench
uses: actions/upload-artifact@v4.4.0
uses: actions/upload-artifact@v4
with:
name: bench
path: bench
Expand Down Expand Up @@ -526,7 +526,7 @@ jobs:
}' | tee status/$(basename $f .csv)-$s.json
done
- name: upload-status-bench
uses: actions/upload-artifact@v4.4.0
uses: actions/upload-artifact@v4
with:
name: status-bench
path: status
Expand All @@ -536,10 +536,10 @@ jobs:
test-compat:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
if: ${{github.event_name == 'pull_request'}}
# checkout the current pr target into lfsp
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
if: ${{github.event_name == 'pull_request'}}
with:
ref: ${{github.event.pull_request.base.ref}}
Expand Down Expand Up @@ -573,7 +573,7 @@ jobs:
runs-on: ubuntu-latest
if: ${{!endsWith(github.ref, '-prefix')}}
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
- name: install
run: |
# need a few things
Expand All @@ -583,7 +583,7 @@ jobs:
gcc --version
python3 --version
fusermount -V
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
with:
repository: littlefs-project/littlefs-fuse
ref: v2
Expand Down Expand Up @@ -623,7 +623,7 @@ jobs:
runs-on: ubuntu-latest
if: ${{!endsWith(github.ref, '-prefix')}}
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
- name: install
run: |
# need a few things
Expand All @@ -633,12 +633,12 @@ jobs:
gcc --version
python3 --version
fusermount -V
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
with:
repository: littlefs-project/littlefs-fuse
ref: v2
path: v2
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
with:
repository: littlefs-project/littlefs-fuse
ref: v1
Expand Down Expand Up @@ -695,7 +695,7 @@ jobs:
runs-on: ubuntu-latest
needs: [test, bench]
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
if: ${{github.event_name == 'pull_request'}}
- name: install
if: ${{github.event_name == 'pull_request'}}
Expand All @@ -705,21 +705,21 @@ jobs:
pip3 install toml
gcc --version
python3 --version
- uses: actions/download-artifact@v4.1.8
- uses: actions/download-artifact@v4
if: ${{github.event_name == 'pull_request'}}
continue-on-error: true
with:
pattern: '{sizes,sizes-*}'
merge-multiple: true
path: sizes
- uses: actions/download-artifact@v4.1.8
- uses: actions/download-artifact@v4
if: ${{github.event_name == 'pull_request'}}
continue-on-error: true
with:
pattern: '{cov,cov-*}'
merge-multiple: true
path: cov
- uses: actions/download-artifact@v4.1.8
- uses: actions/download-artifact@v4
if: ${{github.event_name == 'pull_request'}}
continue-on-error: true
with:
Expand Down Expand Up @@ -866,7 +866,7 @@ jobs:
body: $comment,
}' | tee comment/comment.json
- name: upload-comment
uses: actions/upload-artifact@v4.4.0
uses: actions/upload-artifact@v4
with:
name: comment
path: comment
Expand Down

0 comments on commit 798073c

Please sign in to comment.