Skip to content

Commit 14916a7

Browse files
committed
GITHUB: workflows/testing.yml: use actions/checkout@v4.1.1, fix annotated tag
Upgrade to actions/checkout@v4.1.1 and Fix actions/checkout messing up checkouts of annotated tags; actions/checkout#290 Also fetch submodule upfront. Signed-off-by: Tim Janik <timj@gnu.org>
1 parent 44e0468 commit 14916a7

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.github/workflows/testing.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ jobs:
1515
runs-on: ubuntu-latest
1616
env: { CICACHE: "/tmp/cicache", CITAG: "focal" }
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v4.1.1
19+
with: { fetch-depth: 0 }
20+
- run: |
21+
git fetch -f --tags # Fix actions/checkout annotated tag mess; actions/checkout#290
22+
git submodule update --init --recursive
1923
- uses: actions/cache@v3
2024
with: { path: "/tmp/cicache", key: "cifocal-${{hashFiles ('misc/Dockerfile.focal')}}" }
2125
- name: 'Prepare Docker Image'
@@ -40,7 +44,11 @@ jobs:
4044
runs-on: ubuntu-latest
4145
env: { CICACHE: "/tmp/cicache", CITAG: "arch" }
4246
steps:
43-
- uses: actions/checkout@v4
47+
- uses: actions/checkout@v4.1.1
48+
with: { fetch-depth: 0 }
49+
- run: |
50+
git fetch -f --tags # Fix actions/checkout annotated tag mess; actions/checkout#290
51+
git submodule update --init --recursive
4452
- uses: actions/cache@v3
4553
with: { path: "/tmp/cicache", key: "ciarch-${{hashFiles ('misc/Dockerfile.arch')}}" }
4654
- name: 'Prepare Docker Image'
@@ -63,7 +71,11 @@ jobs:
6371
runs-on: ubuntu-latest
6472
env: { CICACHE: "/tmp/cicache", CITAG: "focal" }
6573
steps:
66-
- uses: actions/checkout@v4
74+
- uses: actions/checkout@v4.1.1
75+
with: { fetch-depth: 0 }
76+
- run: |
77+
git fetch -f --tags # Fix actions/checkout annotated tag mess; actions/checkout#290
78+
git submodule update --init --recursive
6779
- uses: actions/cache@v3
6880
with: { path: "/tmp/cicache", key: "cifocal-${{hashFiles ('misc/Dockerfile.focal')}}" }
6981
- name: 'Prepare Docker Image'
@@ -91,7 +103,11 @@ jobs:
91103
needs: [Focal-Assets, Arch-Replay, Focal-Clang-Tidy]
92104
runs-on: ubuntu-latest
93105
steps:
94-
- uses: actions/checkout@v3
106+
- uses: actions/checkout@v4.1.1
107+
with: { fetch-depth: 0 }
108+
- run: |
109+
git fetch -f --tags # Fix actions/checkout annotated tag mess; actions/checkout#290
110+
git submodule update --init --recursive
95111
- name: Check Jobs
96112
run: |
97113
echo '${{ needs.Focal-Assets.result }}' '${{ needs.Arch-Replay.result }}' '${{ needs.Focal-Clang-Tidy.result }}'

0 commit comments

Comments
 (0)