Skip to content

Commit a51c1b0

Browse files
authored
removed main branch checking for 1st run (#109)
1 parent 89a0b87 commit a51c1b0

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

.github/workflows/tagBasedImageBuild.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,6 @@ jobs:
1111
steps:
1212
- name: Checkout code
1313
uses: actions/checkout@v2
14-
with:
15-
fetch-depth: 0 # This fetches all history for all tags and branches
16-
17-
- name: Verify tag is on main branch
18-
run: |
19-
TAG_COMMIT=$(git rev-list -n 1 ${{ github.ref }})
20-
MAIN_BRANCH_COMMIT=$(git rev-list -n 1 main)
21-
if [ "$TAG_COMMIT" != "$MAIN_BRANCH_COMMIT" ]; then
22-
echo "Tag is not on the main branch, aborting!"
23-
exit 1
24-
fi
2514

2615
- name: Set up Docker Buildx
2716
uses: docker/setup-buildx-action@v1

0 commit comments

Comments
 (0)