Skip to content

Commit

Permalink
prepare-rake: fix push_for_tag values for workflow_dispatch and repos…
Browse files Browse the repository at this point in the history
…itory_dispatch events
  • Loading branch information
CAMOBAP authored Nov 27, 2023
1 parent ffa9dbd commit 0f7be98
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/prepare-rake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,15 @@ jobs:
elif [[ "${{ github.ref }}" == refs/pull/* ]] && [ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.event.pull_request.base.repo.full_name }}" ]; then
fpr="yes"
fi
echo "foreign_pr=${fpr}"
echo "head_tag=${tag}"
echo "foreign_pr=${fpr}" >> $GITHUB_OUTPUT
echo "head_tag=${tag}" >> $GITHUB_OUTPUT
- id: push_for_tag
- name: Push for tag
id: push_for_tag
run: |
value="${{ !(github.event_name == 'push' && steps.check.outputs.head_tag == '') && github.event_name != 'pull_request' }}"
value="${{ !(github.event_name == 'push' && steps.check.outputs.head_tag == '') && github.event_name != 'pull_request' && github.event_name != 'workflow_dispatch' && github.event_name != 'repository_dispatch' }}"
echo "value=${value}"
echo "value=${value}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 0f7be98

Please sign in to comment.