From 1b8b864c83df547150d3fc0378f2db3b624d6444 Mon Sep 17 00:00:00 2001 From: Richard Willis Date: Mon, 21 Sep 2020 18:02:54 +0100 Subject: [PATCH 1/9] Create blank.yml --- .github/workflows/blank.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/blank.yml diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 0000000..c2e06f4 --- /dev/null +++ b/.github/workflows/blank.yml @@ -0,0 +1,31 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +on: + push: + branches: "*" + pull_request: + branches: "*" + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo EDITED! + if: github.event_name == 'pull_request' && github.event.action == 'edited' + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Default From d9f6ad1ec993928200f616f3c0573403df8d4999 Mon Sep 17 00:00:00 2001 From: Richard Willis Date: Mon, 21 Sep 2020 18:06:15 +0100 Subject: [PATCH 2/9] Update blank.yml --- .github/workflows/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index c2e06f4..0f0dc5a 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -23,7 +23,7 @@ jobs: # Runs a single command using the runners shell - name: Run a one-line script run: echo EDITED! - if: github.event_name == 'pull_request' && github.event.action == 'edited' + if: github.event_name == 'pull_request' # Runs a set of commands using the runners shell - name: Run a multi-line script From 2a99e19705ab27e63e2b6a62a762948e4b51f798 Mon Sep 17 00:00:00 2001 From: Richard Willis Date: Mon, 21 Sep 2020 18:07:18 +0100 Subject: [PATCH 3/9] Update blank.yml --- .github/workflows/blank.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 0f0dc5a..06fb9b2 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -22,7 +22,9 @@ jobs: # Runs a single command using the runners shell - name: Run a one-line script - run: echo EDITED! + run: | + echo EDITED! + env if: github.event_name == 'pull_request' # Runs a set of commands using the runners shell From d8d37d074c7bc1bdcd2788b1432dde572f377a49 Mon Sep 17 00:00:00 2001 From: Richard Willis Date: Mon, 21 Sep 2020 18:12:26 +0100 Subject: [PATCH 4/9] Update blank.yml --- .github/workflows/blank.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 06fb9b2..f63061b 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -25,6 +25,7 @@ jobs: run: | echo EDITED! env + echo "- in ${{ github.event }}!" if: github.event_name == 'pull_request' # Runs a set of commands using the runners shell From 5ac99bf955cf241204d81723b452770240785be6 Mon Sep 17 00:00:00 2001 From: Richard Willis Date: Mon, 21 Sep 2020 18:12:59 +0100 Subject: [PATCH 5/9] Update blank.yml --- .github/workflows/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index f63061b..6c38184 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -24,7 +24,7 @@ jobs: - name: Run a one-line script run: | echo EDITED! - env + # env echo "- in ${{ github.event }}!" if: github.event_name == 'pull_request' From 59009556f1db825bc60ca5422da2bc7b9255fdac Mon Sep 17 00:00:00 2001 From: Richard Willis Date: Mon, 21 Sep 2020 18:14:10 +0100 Subject: [PATCH 6/9] Update blank.yml --- .github/workflows/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 6c38184..ee42817 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -25,7 +25,7 @@ jobs: run: | echo EDITED! # env - echo "- in ${{ github.event }}!" + echo "- in ${{ github.event.action }}!" if: github.event_name == 'pull_request' # Runs a set of commands using the runners shell From 284d121f007f47f85e088eff1b3a7ac30efb3161 Mon Sep 17 00:00:00 2001 From: Richard Willis Date: Mon, 21 Sep 2020 18:19:12 +0100 Subject: [PATCH 7/9] Update blank.yml --- .github/workflows/blank.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index ee42817..24b5bb7 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -6,6 +6,7 @@ on: push: branches: "*" pull_request: + types: "*" branches: "*" # A workflow run is made up of one or more jobs that can run sequentially or in parallel From 9e6f5e7b4d665b5b6ee68b80ede2b5959f95bf4a Mon Sep 17 00:00:00 2001 From: Richard Willis Date: Mon, 21 Sep 2020 18:22:06 +0100 Subject: [PATCH 8/9] Update blank.yml --- .github/workflows/blank.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 24b5bb7..c38ce88 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -6,7 +6,7 @@ on: push: branches: "*" pull_request: - types: "*" + types: [edited, synchronize] branches: "*" # A workflow run is made up of one or more jobs that can run sequentially or in parallel @@ -27,7 +27,7 @@ jobs: echo EDITED! # env echo "- in ${{ github.event.action }}!" - if: github.event_name == 'pull_request' + if: github.event_name == 'pull_request' && github.event.action == 'edited' # Runs a set of commands using the runners shell - name: Run a multi-line script From 3a7bab3d9e4856658603361c371203eb39f5bf63 Mon Sep 17 00:00:00 2001 From: Richard Willis Date: Mon, 21 Sep 2020 18:25:08 +0100 Subject: [PATCH 9/9] Update blank.yml --- .github/workflows/blank.yml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index c38ce88..24ab1b2 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -1,35 +1,24 @@ -# This is a basic workflow to help you get started with Actions - name: CI on: push: branches: "*" pull_request: + # https://developer.github.com/webhooks/event-payloads/#pull_request types: [edited, synchronize] branches: "*" -# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "build" build: - # The type of runner that the job will run on runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - - # Runs a single command using the runners shell - name: Run a one-line script run: | echo EDITED! # env echo "- in ${{ github.event.action }}!" if: github.event_name == 'pull_request' && github.event.action == 'edited' - - # Runs a set of commands using the runners shell - name: Run a multi-line script run: | echo Default