Restrict workflows to run only on the master branch on push

This commit is contained in:
Konrad Pabjan 2020-04-30 17:24:00 +02:00
parent 29dd1eaab6
commit 3bd7629b46

View file

@ -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'