diff --git a/.github/workflows/update-vendor-hash.yml b/.github/workflows/update-vendor-hash.yml index e8e7d12a..77d3a751 100644 --- a/.github/workflows/update-vendor-hash.yml +++ b/.github/workflows/update-vendor-hash.yml @@ -59,8 +59,8 @@ jobs: git config user.email "dms-ci[bot]@users.noreply.github.com" git add flake.nix git commit -m "nix: update vendorHash for go.mod changes" || exit 0 - git pull --rebase origin master - git push https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git HEAD:master + git pull --rebase origin ${{ github.ref_name }} + git push https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git HEAD:${{ github.ref_name }} else echo "No changes to flake.nix" fi