Skip to content

Commit

Permalink
Only pubish after pushed to main.
Browse files Browse the repository at this point in the history
  • Loading branch information
RossBugginsNHS committed Jun 28, 2024
1 parent d000c05 commit c493c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cicd-1-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
name: "Publish stage"
needs: [metadata, acceptance-stage]
uses: ./.github/workflows/stage-5-publish.yaml
if: needs.metadata.outputs.does_pull_request_exist == 'true' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
if: (github.event_name == 'push' && github.ref == 'refs/heads/main')
with:
build_datetime: "${{ needs.metadata.outputs.build_datetime }}"
build_timestamp: "${{ needs.metadata.outputs.build_timestamp }}"
Expand Down

0 comments on commit c493c7b

Please sign in to comment.