From 6b5def6676b4281ff257c321363422b037d9117e Mon Sep 17 00:00:00 2001 From: kushalm Date: Tue, 5 Sep 2023 02:53:57 +0400 Subject: [PATCH] chore: Create tag workflow updated --- .github/workflows/check_version.yml | 4 +++- .github/workflows/create_tag.yml | 9 +++++++++ .github/workflows/trigger_on_pr_merge.yml | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check_version.yml b/.github/workflows/check_version.yml index eccc5d2..b3d9fc6 100644 --- a/.github/workflows/check_version.yml +++ b/.github/workflows/check_version.yml @@ -65,6 +65,8 @@ jobs: fi - name: Trigger Next Action - run: echo "Trigger Next Action ${{ steps.check_version.outputs.trigger_next_action }}" + run: | + echo "Trigger Next Action ${{ steps.check_version.outputs.trigger_next_action }}" + echo "set-env:TRIGGER_NEXT_ACTION=${{ steps.check_version.outputs.trigger_next_action}}" >> $GITHUB_ENV env: TRIGGER_NEXT_ACTION: ${{ steps.check_version.outputs.trigger_next_action }} \ No newline at end of file diff --git a/.github/workflows/create_tag.yml b/.github/workflows/create_tag.yml index da2d39d..c188ece 100644 --- a/.github/workflows/create_tag.yml +++ b/.github/workflows/create_tag.yml @@ -23,6 +23,15 @@ jobs: # uses: ./.github/workflows/trigger_on_pr_merge.yml # secrets: # TRIGGER_CREATE_TAG_AND_PUBLISH: ${{ secrets.TRIGGER_CREATE_TAG_AND_PUBLISH }} + debug: + runs-on: ubuntu-latest + steps: + - name: Debug + run: | + echo "TRIGGER_NEXT_ACTION: $TRIGGER_NEXT_ACTION" + echo "if condition: ${{ needs.call-check-version.outputs.TRIGGER_NEXT_ACTION == 'true' }}" + env: + TRIGGER_NEXT_ACTION: ${{ needs.call-check-version.outputs.TRIGGER_NEXT_ACTION }} create-tag-and-publish: permissions: diff --git a/.github/workflows/trigger_on_pr_merge.yml b/.github/workflows/trigger_on_pr_merge.yml index df11c9a..13e039e 100644 --- a/.github/workflows/trigger_on_pr_merge.yml +++ b/.github/workflows/trigger_on_pr_merge.yml @@ -23,6 +23,7 @@ jobs: - name: Check if PR is merged into main id: check_merged run: | + sleep 120 if [ "${{ github.event.pull_request.merged }}" = "true" ] && [ "${{ github.event.pull_request.base.ref }}" = "main" ]; then echo "true" else