From e5fbdb2012899dcf8c0fe2b2a2330de68a8b00e7 Mon Sep 17 00:00:00 2001 From: Brend Smits Date: Fri, 29 Oct 2021 11:58:17 +0200 Subject: [PATCH] Update workflows to only trigger on certain events Closes #8 Signed-off-by: Brend Smits --- .github/workflows/environment.yml | 2 ++ .github/workflows/test-workflow.yml | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/environment.yml b/.github/workflows/environment.yml index 625c0b6..80e2363 100644 --- a/.github/workflows/environment.yml +++ b/.github/workflows/environment.yml @@ -2,6 +2,8 @@ name: Create environment on: push: + branches: + - main paths: - Action/Dockerfile - Action/* diff --git a/.github/workflows/test-workflow.yml b/.github/workflows/test-workflow.yml index 4ceeb70..be12244 100644 --- a/.github/workflows/test-workflow.yml +++ b/.github/workflows/test-workflow.yml @@ -1,6 +1,9 @@ name: Use the action locally to test GH Action functionality on: + push: + branches: + - main workflow_dispatch: jobs: @@ -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"