From f85d8001272f7b0888c8532c523f3977a995459b Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sun, 27 Oct 2024 21:46:37 +0100 Subject: [PATCH] Attempt to push with an explicit ref --- .github/workflows/copyright_notice.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/copyright_notice.yml b/.github/workflows/copyright_notice.yml index f48f092..8513b0f 100644 --- a/.github/workflows/copyright_notice.yml +++ b/.github/workflows/copyright_notice.yml @@ -1,6 +1,8 @@ name: Add copyright notice on: pull_request: +permissions: + contents: write jobs: copyright_notice: runs-on: ubuntu-latest @@ -8,6 +10,7 @@ jobs: - uses: actions/checkout@v4 with: token: ${{ secrets.GITHUB_TOKEN }} + ref: ${{ github.head_ref }} - uses: VinnyBabuManjaly/copyright-action@v1.0.0 with: CopyrightString: 'Copyright (C) 2024 Manuel Bustillo\n' @@ -21,4 +24,4 @@ jobs: git add . git commit -m "Add copyright notice" - name: Push changes - run: git push origin HEAD:${GITHUB_REF##*/} \ No newline at end of file + run: git push \ No newline at end of file