From 7fa60345269c7e6ed638fd07171406c160788ce1 Mon Sep 17 00:00:00 2001 From: David Gidwani Date: Sun, 10 Mar 2024 10:16:53 -0400 Subject: [PATCH] ci: :ferris_wheel: add checkout job and concurrency to publish workflow --- .github/workflows/publish.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1dd86ec..f60a9c0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,12 +8,16 @@ on: workflow_dispatch: jobs: - verify_branch: + publish: runs-on: ubuntu-latest if: github.event.pull_request.merged == true && github.event.pull_request.head.ref == ${{ vars.RELEASE_PR_BRANCH || 'create-pull-request/patch' }} + concurrency: publish outputs: should-publish: steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Publish to GitHub Releases if: github.event_name == 'workflow_dispatch' uses: python-semantic-release/upload-to-gh-release@main