From 600a5e417d117556c638ae80a427111aa7ba616c Mon Sep 17 00:00:00 2001 From: Ana Pazos Date: Thu, 26 Dec 2024 14:56:41 -0800 Subject: [PATCH] testing draft generalize rule mod for test release field updates --- .github/workflows/build-pdf.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-pdf.yml b/.github/workflows/build-pdf.yml index 309fd24..4f7c8fd 100644 --- a/.github/workflows/build-pdf.yml +++ b/.github/workflows/build-pdf.yml @@ -24,11 +24,11 @@ on: description: Create release as a draft? required: false type: boolean - default: false + default: true pull_request: push: branches: - - main + - mywf jobs: build: @@ -76,11 +76,10 @@ jobs: uses: softprops/action-gh-release@v1 with: files: ${{ github.workspace }}/build/*.pdf - tag_name: v${{ steps.version.outputs.version }} - name: Release ${{ steps.version.outputs.version }} + tag_name: draft-${{ steps.date.outputs.date }}-${{ github.sha }} + name: Draft release ${{ steps.date.outputs.date }} + body: Latest snapshot (${{ github.sha }}) draft: ${{ github.event.inputs.draft }} prerelease: ${{ github.event.inputs.prerelease }} env: GITHUB_TOKEN: ${{ secrets.GHTOKEN }} - if: github.event_name == 'workflow_dispatch' - # This condition ensures this step only runs for workflow_dispatch events.