Skip to content

Commit 8554735

Browse files
committed
test
1 parent 42bb470 commit 8554735

1 file changed

Lines changed: 8 additions & 26 deletions

File tree

.github/workflows/deploy-RELEASE.yml

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
#######################################
1616
name: "Build & Deploy - RELEASE"
1717
on:
18+
push:
19+
branches:
20+
- fix-doc
1821
release:
1922
# Want to run the automation when a release is created
2023
types: ["created"]
@@ -30,27 +33,6 @@ on:
3033
# Set the Job #
3134
###############
3235
jobs:
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 }}"

0 commit comments

Comments
 (0)