Skip to content

Commit

Permalink
Restricting action to push only
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Beierl committed Mar 22, 2024
1 parent e7c4015 commit 0e9e871
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ jobs:
track-name: 1.3
secrets: inherit

publish-charm-on-pr:
publish-charm-on-push:
name: Publish Developer Charm To Branch
needs:
- lint-report
- static-analysis
- unit-tests-with-coverage
- integration-test
if: ${{ github.ref_name != 'main' }}
if: ${{ (github.ref_name != 'main') && (github.event_name == 'push') }}
uses: canonical/sdcore-github-workflows/.github/workflows/publish-charm.yaml@main
with:
branch-name: /${{ github.ref_name }}
Expand Down

0 comments on commit 0e9e871

Please sign in to comment.