Skip to content

Commit 4da3074

Browse files
committed
fix: update GitHub Actions to skip Docker builds for forked repositories
1 parent 877bb35 commit 4da3074

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

.github/workflows/github-docker-registry-push.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,6 @@ jobs:
121121
echo "BRANCH=$BRANCH_NAME" >> $GITHUB_ENV
122122
id: extract_branch
123123

124-
- name: Extract branch name and set BRANCH environment variable
125-
# This step extracts the branch name and sets the BRANCH environment variable
126-
shell: bash
127-
run: |
128-
BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | sed -e 's#/#-#g')
129-
if [[ "$BRANCH_NAME" == "main" ]]; then BRANCH_NAME=""; fi
130-
echo "BRANCH=$BRANCH_NAME" >> $GITHUB_ENV
131-
132124
- name: Set repository name to lowercase
133125
# This step sets the repository name to lowercase
134126
run: echo "REPO_NAME=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV

0 commit comments

Comments
 (0)