From b893be61f0ca1543b8f8c5d0728ea1b7fcdfdbed Mon Sep 17 00:00:00 2001 From: ravali-rimmalapudi <83863595+ravali-rimmalapudi@users.noreply.github.com> Date: Fri, 22 Oct 2021 12:17:37 +0530 Subject: [PATCH] fix: Fixing the release issue (#313) * Fixing the release issue * Update slack-notification.yml * Update slack-notification.yml --- .github/workflows/slack-notification.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/slack-notification.yml b/.github/workflows/slack-notification.yml index 685bf76b7..5f7aca806 100644 --- a/.github/workflows/slack-notification.yml +++ b/.github/workflows/slack-notification.yml @@ -9,21 +9,29 @@ on: types: - completed jobs: + get-branch: + name: Get Current Branch Name + runs-on: ubuntu-latest + outputs: + branch: ${{ steps.extract_branch.outputs.branch }} + if: ${{ github.event.workflow_run.conclusion != 'failure' }} + steps: + - name: Extract branch name + id: extract_branch + run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" wait-for-releases: + name: Wait for Docker, Homebrew, RPM and Platform executables Release + runs-on: ubuntu-latest + needs: [ get-branch ] env: INPUT_OWNER: twilio INPUT_REPO: twilio-cli INPUT_GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} - INPUT_REF: ${{steps.extract_branch.outputs.branch}} + INPUT_REF: ${{ needs.get-branch.outputs.branch }} INPUT_WAITING_INTERVAL: 10 INPUT_PROPAGATE_FAILURE: true INPUT_TRIGGER_WORKFLOW: false - name: Wait for Docker, Homebrew, RPM and Platform executables Release - runs-on: ubuntu-latest steps: - - name: Extract branch name - id: extract_branch - run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" - name: Checkout cli repo uses: actions/checkout@v2 - name: Wait for Docker Release