Skip to content

Commit

Permalink
GITHUB: workflows/testing.yml: use actions/[email protected], fix annot…
Browse files Browse the repository at this point in the history
…ated tag

Upgrade to actions/[email protected] and Fix actions/checkout messing up
checkouts of annotated tags; actions/checkout#290

Also fetch submodule upfront.

Signed-off-by: Tim Janik <[email protected]>
  • Loading branch information
tim-janik committed Jan 26, 2024
1 parent 44e0468 commit 14916a7
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ jobs:
runs-on: ubuntu-latest
env: { CICACHE: "/tmp/cicache", CITAG: "focal" }
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with: { fetch-depth: 0 }
- run: |
git fetch -f --tags # Fix actions/checkout annotated tag mess; actions/checkout#290
git submodule update --init --recursive
- uses: actions/cache@v3
with: { path: "/tmp/cicache", key: "cifocal-${{hashFiles ('misc/Dockerfile.focal')}}" }
- name: 'Prepare Docker Image'
Expand All @@ -40,7 +44,11 @@ jobs:
runs-on: ubuntu-latest
env: { CICACHE: "/tmp/cicache", CITAG: "arch" }
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with: { fetch-depth: 0 }
- run: |
git fetch -f --tags # Fix actions/checkout annotated tag mess; actions/checkout#290
git submodule update --init --recursive
- uses: actions/cache@v3
with: { path: "/tmp/cicache", key: "ciarch-${{hashFiles ('misc/Dockerfile.arch')}}" }
- name: 'Prepare Docker Image'
Expand All @@ -63,7 +71,11 @@ jobs:
runs-on: ubuntu-latest
env: { CICACHE: "/tmp/cicache", CITAG: "focal" }
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with: { fetch-depth: 0 }
- run: |
git fetch -f --tags # Fix actions/checkout annotated tag mess; actions/checkout#290
git submodule update --init --recursive
- uses: actions/cache@v3
with: { path: "/tmp/cicache", key: "cifocal-${{hashFiles ('misc/Dockerfile.focal')}}" }
- name: 'Prepare Docker Image'
Expand Down Expand Up @@ -91,7 +103,11 @@ jobs:
needs: [Focal-Assets, Arch-Replay, Focal-Clang-Tidy]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with: { fetch-depth: 0 }
- run: |
git fetch -f --tags # Fix actions/checkout annotated tag mess; actions/checkout#290
git submodule update --init --recursive
- name: Check Jobs
run: |
echo '${{ needs.Focal-Assets.result }}' '${{ needs.Arch-Replay.result }}' '${{ needs.Focal-Clang-Tidy.result }}'
Expand Down

0 comments on commit 14916a7

Please sign in to comment.