Skip to content

Commit

Permalink
Tentative Modif create Release
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelQuetin committed Jul 30, 2024
1 parent 70378a5 commit acebafd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: 'actions/checkout@v3'
- name: 'set variable for snapshot release'
run: |
snapshot_version=${{ jobs.calculate_versions.outputs.snapshot_version }}
echo "Snapshot version: ${snapshot_version}"
- name: 'Checkout source code'
uses: 'actions/checkout@v3'
with:
Expand All @@ -48,7 +54,7 @@ jobs:
- name: 'Verify version is semver formatted (X.X.X)'
env:
NEW_TAG: ${{ github.event.inputs.releaseVersion }}
NEW_TAG_SNAPSHOT: ${{ jobs.calculate_versions.outputs.snapshot_version }}
NEW_TAG_SNAPSHOT: ${{ snapshot_version }}
run: |
echo $NEW_TAG | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$'
echo $NEW_TAG_SNAPSHOT | grep -E '^[0-9]+\.[0-9]+\.[0-9]+-SNAPSHOT$'
Expand All @@ -61,7 +67,7 @@ jobs:
- name: 'Generate the new version (patch few files + git tag)'
env:
NEW_TAG: ${{ github.event.inputs.releaseVersion }}
NEW_TAG_SNAPSHOT: ${{ jobs.calculate_versions.outputs.snapshot_version }}
NEW_TAG_SNAPSHOT: ${{ snapshot_version }}
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB_FOR_GITHUB_ACTION }}
run: |
# préparation de la release qui va :
Expand Down

0 comments on commit acebafd

Please sign in to comment.