2 parents 356bdac + 1bce412 commit 39763dbCopy full SHA for 39763db
1 file changed
.github/workflows/docker-manual.yml
@@ -35,7 +35,12 @@ jobs:
35
36
- name: Extract tag version from branch name
37
id: extract_tag_version
38
- run: echo "VERSION=$(echo ${{ github.head_ref }} | sed 's/^ckan-//')" >> $GITHUB_ENV
+ 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
44
45
- name: Extract Docker metadata
46
id: meta
@@ -76,4 +81,4 @@ jobs:
76
81
uses: github/codeql-action/upload-sarif@v3
77
82
if: always()
78
83
with:
79
- sarif_file: trivy-results.sarif
84
+ sarif_file: trivy-results.sarif
0 commit comments