Skip to content
Merged
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
11 changes: 10 additions & 1 deletion .github/workflows/github-docker-registry-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,16 @@ jobs:
steps:
- name: Check if PR is from a fork
# This step checks if the pull request is from a fork
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: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
if [ '${{ github.event.pull_request.head.repo.full_name }}' != '${{ github.repository }}' ]; then
echo "IS_FORK=true" >> $GITHUB_ENV
else
echo "IS_FORK=false" >> $GITHUB_ENV
fi
else
echo "IS_FORK=false" >> $GITHUB_ENV
fi

- name: Checkout
# This step checks out the repository
Expand Down
Loading