Skip to content

Commit

Permalink
Merge branch 'use-calver-action'
Browse files Browse the repository at this point in the history
  • Loading branch information
atas committed Oct 15, 2024
2 parents e5c5a18 + 9ee1ec2 commit 5060b21
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,14 @@ jobs:
with:
name: swpserver

#region jq
- name: Restore JQ cache
id: cache-jq
uses: actions/cache@v4
with:
path: /usr/bin/jq
key: jq-${{ runner.os }}-${{ hashFiles('**/*.yml') }}

- name: Setup JQ
if: steps.cache-jq.outputs.cache-hit != 'true'
run: sudo apt-get install -y jq
#endregion
- name: Check if jq is installed
run: |
if ! command -v jq &> /dev/null; then
echo "jq is not installed. Installing..."
sudo apt-get install -y jq
else
echo "jq is already installed."
fi
- id: bump-release-calver
uses: atas/bump-release-calver-action@main
Expand Down

0 comments on commit 5060b21

Please sign in to comment.