Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions .github/workflows/tool-create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
create_release:
name: Create Release
runs-on: ubuntu-latest
environment: dev
permissions:
contents: write
id-token: write
Expand Down Expand Up @@ -49,20 +50,6 @@ jobs:
git tag $tag
git push origin $tag

- name: Update floating tag (minor versions)
if: endsWith(env.tag, '.0.0') != true
run: |
git config user.name "github-actions"
git config user.email "github-actions@github.com"
floating_tag="v${tag%%.*}"
git tag -d $floating_tag
echo "${floating_tag} deleted locally."
git push --delete origin $floating_tag
echo "${floating_tag} deleted from origin."
git tag -a $floating_tag -m "Floating tag for v${tag%%.*}"
git push origin $floating_tag
echo "${floating_tag} pushed to origin."

- name: Create new floating tag (Major Version)
if: endsWith(env.tag, '.0.0')
run: |
Expand All @@ -81,3 +68,5 @@ jobs:
uses: NHSDigital/orphaned-record-continuity/.github/workflows/tool-create-release.yml@cfad34f8d0788ae346cc1ece251d5b6c8a3b5ee5
with:
tag: ${{ inputs.tag }}
secrets:
IAM_ROLE: ${{ secrets.IAM_ROLE }}
Loading