Skip to content

Commit 39763db

Browse files
authored
Merge pull request #151 from mjanez/ckan-2.10.5
Update GitHub Actions workflow to set VERSION to 'master' when the github.head_ref is 'master'.
2 parents 356bdac + 1bce412 commit 39763db

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/docker-manual.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ jobs:
3535

3636
- name: Extract tag version from branch name
3737
id: extract_tag_version
38-
run: echo "VERSION=$(echo ${{ github.head_ref }} | sed 's/^ckan-//')" >> $GITHUB_ENV
38+
run: |
39+
if [ "${{ github.head_ref }}" = "master" ]; then
40+
echo "VERSION=master" >> $GITHUB_ENV
41+
else
42+
echo "VERSION=$(echo ${{ github.head_ref }} | sed 's/^ckan-//')" >> $GITHUB_ENV
43+
fi
3944
4045
- name: Extract Docker metadata
4146
id: meta
@@ -76,4 +81,4 @@ jobs:
7681
uses: github/codeql-action/upload-sarif@v3
7782
if: always()
7883
with:
79-
sarif_file: trivy-results.sarif
84+
sarif_file: trivy-results.sarif

0 commit comments

Comments
 (0)