Skip to content

Commit

Permalink
Merge pull request canonical#3 from natalian98/test-action-on-pr
Browse files Browse the repository at this point in the history
trigger actions on push
  • Loading branch information
natalian98 committed May 18, 2022
2 parents b528f96 + 4245a72 commit d88b61b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/publish-to-edge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,17 @@ on:
- track/**

jobs:
tests:
# tests expected to be run only on push
if: (github.event_name == 'push')
name: Run the tests
uses: ./.github/workflows/ci.yaml

publish-charm:
name: Publish Charm
needs:
- tests
runs-on: ubuntu-latest
steps:
- name: Run the tests on push
if: (github.event_name == 'push')
id: tests
uses: ./.github/workflows/ci.yaml
- name: Checkout
if: (((github.event_name == 'pull_request') && always()) || ((github.event_name == 'push') && steps.tests.outcome == 'success'))
uses: actions/checkout@v2
with:
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@


class OperatorTemplateCharm(CharmBase):
"""Charm the service. Update to test actions on PR"""
"""Charm the service. Update to test actions on PR."""

_stored = StoredState()

Expand Down

0 comments on commit d88b61b

Please sign in to comment.