Skip to content

Commit

Permalink
checkout v4 and get tags (#1055)
Browse files Browse the repository at this point in the history
Signed-off-by: mina1460 <mina146@aucegypt.edu>
  • Loading branch information
mina1460 authored Oct 12, 2023
1 parent 61f995e commit 1be2fcc
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 10 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/charm-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ jobs:
matrix:
charm-type: ["jimm","jimm-k8s"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- run: git fetch --prune --unshallow
- run: sudo snap install charmcraft --channel=2.x/stable --classic
- run: sudo charmcraft pack --project-dir ./charms/${{ matrix.charm-type }} --destructive-mode --verbosity=trace
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/charm-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ jobs:
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Build local images
run: make jimm-image
- name: Upload charm to charmhub
Expand All @@ -52,9 +53,10 @@ jobs:
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- uses: actions/download-artifact@master
with:
name: jimm-snap
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/charm-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ jobs:
working-directory: ./charms/${{ matrix.charm-type }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Install dependencies
run: python3 -m pip install tox
- name: Run linters
Expand All @@ -37,7 +40,10 @@ jobs:
working-directory: ./charms/${{ matrix.charm-type }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Install dependencies
run: python -m pip install tox
- name: Run tests
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/charm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ jobs:
build-charm:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- run: git fetch --prune --unshallow
- run: sudo snap install charmcraft --channel=2.x/stable --classic
- run: charmcraft pack --project-dir ./charms/${{ inputs.charm }} --destructive-mode
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ jobs:
name: Build and Test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/oci-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ jobs:
candid-oci-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- run: git fetch --prune --unshallow
- uses: actions/setup-go@v4
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/snap-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ jobs:
snap: ${{ steps.snapcraft.outputs.snap }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: scripts
run: |
mkdir -p ./snap
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/snap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ jobs:
build-snap:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- run: git fetch --prune --unshallow
- uses: actions/setup-go@v4
with:
Expand Down

0 comments on commit 1be2fcc

Please sign in to comment.