diff --git a/.github/workflows/tool-create-release.yml b/.github/workflows/tool-create-release.yml index 71d4f444..8def37df 100644 --- a/.github/workflows/tool-create-release.yml +++ b/.github/workflows/tool-create-release.yml @@ -16,6 +16,7 @@ jobs: create_release: name: Create Release runs-on: ubuntu-latest + environment: dev permissions: contents: write id-token: write @@ -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: | @@ -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 }}