Skip to content

Commit

Permalink
CI: pin GitHub Actions workflows (#1389)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored Nov 14, 2023
1 parent 2de351f commit c9c364a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Use Elixir
uses: erlef/setup-beam@v1.16
uses: erlef/setup-beam@61e01a43a562a89bfc54c7f9a378ff67b03e4a21
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
Expand All @@ -41,7 +41,7 @@ jobs:
echo "::set-output name=cache_key::$cache_key"
- name: Retrieve Mix Dependencies Cache
uses: actions/cache@v3
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84
id: mix-cache # id to use in retrieve action
with:
path: deps
Expand All @@ -55,7 +55,7 @@ jobs:
run: mix

- name: Retrieve PLT Cache
uses: actions/cache@v3
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84
id: plt-cache
with:
path: priv/plts
Expand Down Expand Up @@ -92,9 +92,9 @@ jobs:
otp: '26.0'

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Use Elixir ${{matrix.elixir}} / OTP ${{matrix.otp}}
uses: erlef/setup-beam@v1.16
uses: erlef/setup-beam@61e01a43a562a89bfc54c7f9a378ff67b03e4a21
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
Expand All @@ -110,7 +110,7 @@ jobs:
echo "::set-output name=cache_key::$cache_key"
- name: Retrieve Mix Dependencies Cache
uses: actions/cache@v3
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84
id: mix-cache # id to use in retrieve action
with:
path: deps
Expand All @@ -130,17 +130,17 @@ jobs:
name: Link Checker
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Retrieve Lychee Cache
uses: actions/cache@v3
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84
id: lychee-cache # id to use in retrieve action
with:
path: .lycheecache
key: lychee-v1

- name: Link Checker
uses: lycheeverse/lychee-action@v1
uses: lycheeverse/lychee-action@ec3ed119d4f44ad2673a7232460dc7dff59d2421
with:
args: --cache --max-cache-age 7d --require-https --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36" --no-progress './**/*.md' './**/*.html' './**/*.json'
fail: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
pr-comment:
runs-on: ubuntu-22.04
steps:
- uses: exercism/pr-commenter-action@v1.5.1
- uses: exercism/pr-commenter-action@085ef62d2a541a112c3ade1d24deea83665ea186
with:
github-token: "${{ github.token }}"
config-file: ".github/pr-commenter.yml"

0 comments on commit c9c364a

Please sign in to comment.