Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Create tag workflow updated #45

Merged
merged 1 commit into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading