Skip to content

Commit

Permalink
Update all GHA and reference pinned version number/tag
Browse files Browse the repository at this point in the history
Ensure we're using the latest released version of all GitHub Actions
we're using, make it clear what version we have pinned.

Signed-off-by: Joshua Lock <joshuagloe@gmail.com>
  • Loading branch information
joshuagl committed Feb 22, 2024
1 parent a1f5585 commit 33d45df
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-latest-spec-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
contents: read
issues: write
steps:
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
const release = await github.rest.repos.getLatestRelease({
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v
5.0.0
with:
python-version: '3.10'
cache: pip

- name: Clone
uses: actions/checkout@aadec899646c8e0f34c52d9219c2faac36626b55
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.
1

- name: Build specification
run: |
Expand All @@ -25,7 +27,8 @@ jobs:
make -f ../Makefile draft
- name: Switch branch
uses: actions/checkout@aadec899646c8e0f34c52d9219c2faac36626b55
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.
1
with:
ref: gh-pages
clean: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
name: Sanity checks before a PR merge
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@aadec899646c8e0f34c52d9219c2faac36626b55
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0 # we want all refs for the --is-ancestor check

- name: Set up Python
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: '3.10'
cache: pip
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
contents: write # required to publish (tag) a release
steps:
- name: Clone main
uses: actions/checkout@aadec899646c8e0f34c52d9219c2faac36626b55
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0

Expand All @@ -30,14 +30,14 @@ jobs:
- name: Set up Python
if: steps.getver.outputs.spec_version != steps.prevver.outputs.prev_version
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: '3.10'
cache: 'pip'

- name: Make release
if: steps.getver.outputs.spec_version != steps.prevver.outputs.prev_version
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1.1.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -54,7 +54,7 @@ jobs:
- name: Switch branch
if: steps.getver.outputs.spec_version != steps.prevver.outputs.prev_version
uses: actions/checkout@aadec899646c8e0f34c52d9219c2faac36626b55
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: gh-pages
clean: false
Expand Down

0 comments on commit 33d45df

Please sign in to comment.