File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515# ######################################
1616name : " Build & Deploy - RELEASE"
1717on :
18+ push :
19+ branches :
20+ - fix-doc
1821 release :
1922 # Want to run the automation when a release is created
2023 types : ["created"]
3033# Set the Job #
3134# ##############
3235jobs :
33- build :
34- # Name the Job
35- name : Deploy Docker Image - RELEASE
36- # Set the agent to run on
37- runs-on : ubuntu-latest
38- # Only run on main repo
39- if : github.repository == 'oxsecurity/megalinter' && !contains(github.event.head_commit.message, 'skip deploy')
40- permissions :
41- actions : write
42- packages : write
43- environment :
44- name : release
45- # #################
46- # Load all steps #
47- # #################
48- steps :
49- # #########################
50- # Checkout the code base #
51- # #########################
52- - name : Checkout Code
53- uses : actions/checkout@v6
5436
5537 # #######################################################
5638 # Publish updated version of mega-linter-runner on NPM #
@@ -198,11 +180,11 @@ jobs:
198180 id : version
199181 run : |
200182 {
201- echo "cversion=$(git describe --tags --match='v*' --abbrev=0 | cut -c2-) "
202- echo "ctag=$(git describe --tags --match='v*' --abbrev=0) "
203- echo "pversion=$(git describe --abbrev=0 --match='v*' --tags "$(git rev-list --tags --skip=1 --max-count=1)" | cut -c2-) "
204- echo "ptag=$(git describe --abbrev=0 --match='v*' --tags "$(git rev-list --tags --skip=1 --max-count=1)") "
205- } >>"$GITHUB_OUTPUT"
183+ echo "cversion=9.3.0 "
184+ echo "ctag=v9.3.0 "
185+ echo "pversion=9.2.0 "
186+ echo "ptag=v9.2.0 "
187+ } >>"$GITHUB_OUTPUT"
206188 - name : Print tags
207189 run : |
208190 echo "prev tag ${{ steps.version.outputs.ptag }}"
You can’t perform that action at this time.
0 commit comments