Skip to content

Commit

Permalink
update release mechanic
Browse files Browse the repository at this point in the history
  • Loading branch information
mushroomempires committed Jan 16, 2025
1 parent 589e94d commit 72ee3f1
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/get-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,22 @@ jobs:
version = new Date().toLocaleTimeString('en-US', { hour12: false }).replaceAll(":","")
}
core.setOutput('release', release);
core.setOutput('version', version);
- name: "Get release: 1 for testing / stable, <date>.<commit_sha> for others"
id: get_release
run: |
echo "release=1" >> $GITHUB_OUTPUT
shell: bash
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
let release = '';
if (${{ contains(fromJSON('["testing", "unstable"]') , steps.get_stability.outputs.stability) }} === true) {
release = "1"
} else {
release = Date.now()
}
core.setOutput('release', release);
- name: "Get release type: hotfix, release or not defined if not a release"
id: get_release_type
Expand Down

0 comments on commit 72ee3f1

Please sign in to comment.