diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d32736bb69..871d71fd21 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,6 +1,6 @@ name: curvenote on: - pull_request: + pull_request_target: branches: ['2024'] permissions: contents: read @@ -18,6 +18,7 @@ jobs: collection: '2024' kind: Article path: papers/* + ref: ${{ github.event.pull_request.head.sha }} secrets: CURVENOTE: ${{ secrets.CURVENOTE_TOKEN }} GITHUB: ${{ secrets.GITHUB_TOKEN }}