From 33084119932d1c2e3ac921c8d4844595996efb56 Mon Sep 17 00:00:00 2001 From: bloodyowl Date: Thu, 26 Oct 2023 14:31:36 +0200 Subject: [PATCH] Fix notify job --- .github/workflows/prerelease-notify.yml | 15 +++++++-------- .github/workflows/release-notify.yml | 15 +++++++-------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/.github/workflows/prerelease-notify.yml b/.github/workflows/prerelease-notify.yml index fe5382829..3586ab416 100644 --- a/.github/workflows/prerelease-notify.yml +++ b/.github/workflows/prerelease-notify.yml @@ -17,6 +17,13 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Read version + id: version + shell: bash + run: echo "version=${RELEASE_TAG#*preprod-}" >> $GITHUB_OUTPUT + env: + RELEASE_TAG: ${{ github.event.client_payload.imageTag }} + - name: Cache release tag id: cache-release-tag uses: actions/cache@v3 @@ -44,14 +51,6 @@ jobs: GITHUB_TOKEN: $${{ secrets.NOTIFY_GH_TOKEN }} RELEASE_TAG: ${{ github.event.client_payload.imageTag }} - - name: Get version - if: ${{ steps.cache-release-tag.outputs.cache-hit != 'true' }} - id: version - shell: bash - run: echo "version=${RELEASE_TAG#*preprod-}" >> $GITHUB_OUTPUT - env: - RELEASE_TAG: ${{ github.event.client_payload.imageTag }} - - name: Notify on Slack if: ${{ startsWith(github.event.client_payload.imageTag, 'preprod-') && steps.cache-release-tag.outputs.cache-hit != 'true' }} uses: bloodyowl/slack-message-release-action@v1.3.0 diff --git a/.github/workflows/release-notify.yml b/.github/workflows/release-notify.yml index 36fcdbe6e..ab6aba743 100644 --- a/.github/workflows/release-notify.yml +++ b/.github/workflows/release-notify.yml @@ -17,6 +17,13 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Read version + id: version + shell: bash + run: echo "version=${RELEASE_TAG#*prod-}" >> $GITHUB_OUTPUT + env: + RELEASE_TAG: ${{ github.event.client_payload.imageTag }} + - name: Cache release tag id: cache-release-tag uses: actions/cache@v3 @@ -44,14 +51,6 @@ jobs: GITHUB_TOKEN: $${{ secrets.NOTIFY_GH_TOKEN }} RELEASE_TAG: ${{ github.event.client_payload.imageTag }} - - name: Get version - if: ${{ steps.cache-release-tag.outputs.cache-hit != 'true' }} - id: version - shell: bash - run: echo "version=${RELEASE_TAG#*prod-}" >> $GITHUB_OUTPUT - env: - RELEASE_TAG: ${{ github.event.client_payload.imageTag }} - - name: Notify on Slack if: ${{ startsWith(github.event.client_payload.imageTag, 'prod-') && steps.cache-release-tag.outputs.cache-hit != 'true' }} uses: bloodyowl/slack-message-release-action@v1.3.0