Skip to content

Commit 1be2fcc

Browse files
authored
checkout v4 and get tags (#1055)
Signed-off-by: mina1460 <mina146@aucegypt.edu>
1 parent 61f995e commit 1be2fcc

File tree

8 files changed

+34
-10
lines changed

8 files changed

+34
-10
lines changed

.github/workflows/charm-build.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ jobs:
1010
matrix:
1111
charm-type: ["jimm","jimm-k8s"]
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
fetch-tags: true
1417
- run: git fetch --prune --unshallow
1518
- run: sudo snap install charmcraft --channel=2.x/stable --classic
1619
- run: sudo charmcraft pack --project-dir ./charms/${{ matrix.charm-type }} --destructive-mode --verbosity=trace

.github/workflows/charm-release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ jobs:
2727
timeout-minutes: 60
2828
steps:
2929
- name: Checkout
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3131
with:
3232
fetch-depth: 0
33+
fetch-tags: true
3334
- name: Build local images
3435
run: make jimm-image
3536
- name: Upload charm to charmhub
@@ -52,9 +53,10 @@ jobs:
5253
timeout-minutes: 60
5354
steps:
5455
- name: Checkout
55-
uses: actions/checkout@v3
56+
uses: actions/checkout@v4
5657
with:
5758
fetch-depth: 0
59+
fetch-tags: true
5860
- uses: actions/download-artifact@master
5961
with:
6062
name: jimm-snap

.github/workflows/charm-test.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ jobs:
2121
working-directory: ./charms/${{ matrix.charm-type }}
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0
27+
fetch-tags: true
2528
- name: Install dependencies
2629
run: python3 -m pip install tox
2730
- name: Run linters
@@ -37,7 +40,10 @@ jobs:
3740
working-directory: ./charms/${{ matrix.charm-type }}
3841
steps:
3942
- name: Checkout
40-
uses: actions/checkout@v3
43+
uses: actions/checkout@v4
44+
with:
45+
fetch-depth: 0
46+
fetch-tags: true
4147
- name: Install dependencies
4248
run: python -m pip install tox
4349
- name: Run tests

.github/workflows/charm.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ jobs:
1818
build-charm:
1919
runs-on: ubuntu-20.04
2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
fetch-tags: true
2225
- run: git fetch --prune --unshallow
2326
- run: sudo snap install charmcraft --channel=2.x/stable --classic
2427
- run: charmcraft pack --project-dir ./charms/${{ inputs.charm }} --destructive-mode

.github/workflows/ci.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ jobs:
2828
name: Build and Test
2929
runs-on: ubuntu-20.04
3030
steps:
31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
32+
with:
33+
fetch-tags: true
34+
fetch-depth: 0
3235
- uses: actions/setup-go@v4
3336
with:
3437
go-version-file: 'go.mod'

.github/workflows/oci-image.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ jobs:
66
candid-oci-image:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
10+
with:
11+
fetch-depth: 0
12+
fetch-tags: true
1013
- run: git fetch --prune --unshallow
1114
- uses: actions/setup-go@v4
1215
with:

.github/workflows/snap-release.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ jobs:
1717
snap: ${{ steps.snapcraft.outputs.snap }}
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 0
23+
fetch-tags: true
2324
- name: scripts
2425
run: |
2526
mkdir -p ./snap

.github/workflows/snap.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ jobs:
1010
build-snap:
1111
runs-on: ubuntu-20.04
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
fetch-tags: true
1417
- run: git fetch --prune --unshallow
1518
- uses: actions/setup-go@v4
1619
with:

0 commit comments

Comments
 (0)