Merge pull request #10 from PatrykIti/fix/workflow_pat
fix: Fix main branch checkout in Docker workflow
This commit is contained in:
@@ -122,8 +122,8 @@ jobs:
|
|||||||
if: github.ref_type == 'tag' || (github.event_name == 'repository_dispatch' && github.event.client_payload.pr_number != '')
|
if: github.ref_type == 'tag' || (github.event_name == 'repository_dispatch' && github.event.client_payload.pr_number != '')
|
||||||
run: |
|
run: |
|
||||||
# Checkout main branch to avoid detached HEAD when pushing
|
# Checkout main branch to avoid detached HEAD when pushing
|
||||||
|
git fetch origin main:main
|
||||||
git checkout main
|
git checkout main
|
||||||
git pull origin main
|
|
||||||
# Extract the primary image tag for updating README
|
# Extract the primary image tag for updating README
|
||||||
if [[ "${{ github.ref_type }}" == "tag" ]]; then
|
if [[ "${{ github.ref_type }}" == "tag" ]]; then
|
||||||
# For tag releases, use the version tag
|
# For tag releases, use the version tag
|
||||||
|
|||||||
Reference in New Issue
Block a user