Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checkout v4 and get tags #1055

Merged
merged 1 commit into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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