From 9cdf5ee5c68266e4bf4b067a30034d58d224c85f Mon Sep 17 00:00:00 2001 From: alifeee Date: Sat, 11 Nov 2023 23:20:19 +0000 Subject: [PATCH] use `ref: main` to check out main branch otherwise it checks out the trigger (which is the release tag), so can't push back to it (detached head state) --- .github/workflows/publish.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f43aef6..06fb6de 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -73,7 +73,10 @@ jobs: permissions: contents: write steps: - - uses: actions/checkout@v3 + - name: Checkout main branch + uses: actions/checkout@v3 + with: + ref: main - name: Download artifact uses: actions/download-artifact@v3