From 3bd7629b465b572462f7296bd19a1cdcdb629644 Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Thu, 30 Apr 2020 17:24:00 +0200 Subject: [PATCH] Restrict workflows to run only on the master branch on push --- .github/workflows/test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b43b09b..8242e9c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,8 @@ name: Test on: push: + branches: + - master paths-ignore: - '**.md' pull_request: @@ -64,7 +66,7 @@ jobs: uses: actions/upload-artifact@v1 with: name: 'Artifact-B' - path: path/to/artifact-B + path: path/to/artifact-git - name: Download artifact A with no extra folder (default) uses: ./ @@ -77,7 +79,7 @@ jobs: run: | scripts/test-artifact-file.sh "download/with/artifact-folder/false/file-A.txt" "${{ env.non-gzip-artifact-content }}" - - name: Download artifact A with create-folder set to true + - name: Download artifact A with artifact-folder set to true uses: ./ with: name: 'Artifact-A'