From 579b94f53d7445e62c593ca44ab5b6c091fe5884 Mon Sep 17 00:00:00 2001 From: sangeet-joy_xero Date: Tue, 22 Oct 2024 18:43:46 +0530 Subject: [PATCH] ci: testing the flow --- .github/workflows/check-publish.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/check-publish.yml b/.github/workflows/check-publish.yml index 662a1ac0..dbbb40ff 100644 --- a/.github/workflows/check-publish.yml +++ b/.github/workflows/check-publish.yml @@ -46,12 +46,6 @@ jobs: echo "packagist_status=failure" >> $GITHUB_ENV fi - - name: Fail job if status is Failure - if: ${{env.packagist_status == 'failure'}} - run: | - echo "Job failed because packgist is not updated" - exit 1 - - name: Send slack Notification on Success if: ${{ env.packagist_status == 'success' }} uses: ./xero-php-oauth2/.github/actions/notify-slack @@ -77,3 +71,9 @@ jobs: button_type: "danger" package_version: ${{env.php_version}} repo_link: ${{github.server_url}}/${{github.repository}} + + - name: Fail job if status is Failure + if: ${{env.packagist_status == 'failure'}} + run: | + echo "Job failed because packgist is not updated" + exit 1