We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6299cd2 commit 35db12eCopy full SHA for 35db12e
.github/workflows/github-docker-registry-push.yml
@@ -22,7 +22,16 @@ jobs:
22
steps:
23
- name: Check if PR is from a fork
24
# This step checks if the pull request is from a fork
25
- run: echo "IS_FORK=$(if [ '${{ github.event.pull_request.head.repo.full_name }}' != '${{ github.repository }}' ]; then echo 'true'; else echo 'false'; fi)" >> $GITHUB_ENV
+ run: |
26
+ if [ "${{ github.event_name }}" = "pull_request" ]; then
27
+ if [ '${{ github.event.pull_request.head.repo.full_name }}' != '${{ github.repository }}' ]; then
28
+ echo "IS_FORK=true" >> $GITHUB_ENV
29
+ else
30
+ echo "IS_FORK=false" >> $GITHUB_ENV
31
+ fi
32
33
34
35
36
- name: Checkout
37
# This step checks out the repository
0 commit comments