Skip to content

Commit

Permalink
ci: publish deploy on specific branch (#7012)
Browse files Browse the repository at this point in the history
* ci: publish deploy on specific branch

* chore: fix prettier
  • Loading branch information
BlackySoul authored Jun 13, 2024
1 parent fcd27a0 commit 02d78d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/publish_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ on:
- 'release'
- 'pre-release'

env:
CHECKOUT_BRANCH: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.head_branch || github.ref }}

jobs:
payload:
name: Prepare payload data
Expand Down Expand Up @@ -61,6 +64,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ env.CHECKOUT_BRANCH }}

- name: Setting up the repository environment
uses: ./.github/actions/setup
Expand Down

0 comments on commit 02d78d7

Please sign in to comment.