Skip to content

Commit

Permalink
chore: Create tag workflow updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalmahapatro committed Sep 4, 2023
1 parent 40ec6a0 commit 6b5def6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/check_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
9 changes: 9 additions & 0 deletions .github/workflows/create_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/trigger_on_pr_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b5def6

Please sign in to comment.