Skip to content

Commit

Permalink
Update workflows to only trigger on certain events
Browse files Browse the repository at this point in the history
Closes #8

Signed-off-by: Brend Smits <brend.smits@philips.com>
  • Loading branch information
Brend-Smits committed Oct 29, 2021
1 parent 71b6844 commit e5fbdb2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Create environment

on:
push:
branches:
- main
paths:
- Action/Dockerfile
- Action/*
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Use the action locally to test GH Action functionality

on:
push:
branches:
- main
workflow_dispatch:

jobs:
Expand All @@ -9,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Create Medium Post
uses: philips-software/post-to-medium-action@v0.1
uses: philips-software/post-to-medium-action@main
with:
integration_token: "${{ secrets.INTEGRATION_TOKEN }}"
content: "Test content to see if publishing works from GH Action"
Expand Down

0 comments on commit e5fbdb2

Please sign in to comment.