From d9ad827e9c83525bfd048b3d01ab8edf6eba8427 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 6 Sep 2023 14:58:20 -0700 Subject: [PATCH 1/7] pr tests --- .github/workflows/pr_tests.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/pr_tests.yaml diff --git a/.github/workflows/pr_tests.yaml b/.github/workflows/pr_tests.yaml new file mode 100644 index 0000000..6a00f7f --- /dev/null +++ b/.github/workflows/pr_tests.yaml @@ -0,0 +1,24 @@ +name: PR Tests + +on: + push: + branches-ignore: + - 'main' + pull_request: + branches-ignore: + - 'main' + +jobs: + steps: + - uses: actions/checkout@v1 + + - id: find-pr + uses: jwalton/gh-find-current-pr@v1 + with: + state: open + + - id: job1 + run: echo "Your PR is ${PR}" + if: success() && steps.find-pr.outputs.number + env: + PR: ${{ steps.find-pr.outputs.pr }} From a94787d32bd805f611817b9bda86afecb17e773a Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 6 Sep 2023 15:00:11 -0700 Subject: [PATCH 2/7] job updates --- .github/workflows/pr_tests.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr_tests.yaml b/.github/workflows/pr_tests.yaml index 6a00f7f..b1dd0a2 100644 --- a/.github/workflows/pr_tests.yaml +++ b/.github/workflows/pr_tests.yaml @@ -10,14 +10,18 @@ on: jobs: steps: - - uses: actions/checkout@v1 + - name: Checkout code + id: code-checkout + uses: actions/checkout@v3 - - id: find-pr + - name: find-pr + id: find-pr uses: jwalton/gh-find-current-pr@v1 with: state: open - - id: job1 + - name: job1 + id: job1 run: echo "Your PR is ${PR}" if: success() && steps.find-pr.outputs.number env: From 1e0a3c7caf0698084cbe3cc775d1bdea1d2da1a9 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 6 Sep 2023 15:01:26 -0700 Subject: [PATCH 3/7] added job --- .github/workflows/pr_tests.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/pr_tests.yaml b/.github/workflows/pr_tests.yaml index b1dd0a2..0783a01 100644 --- a/.github/workflows/pr_tests.yaml +++ b/.github/workflows/pr_tests.yaml @@ -9,6 +9,11 @@ on: - 'main' jobs: + + myjob: + name: My Job + runs-on: ubuntu-latest + steps: - name: Checkout code id: code-checkout From 5d8db987dc79d799f74f61337d3bdf0aa6221a9d Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 6 Sep 2023 15:02:56 -0700 Subject: [PATCH 4/7] fix yaml formating --- .github/workflows/pr_tests.yaml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pr_tests.yaml b/.github/workflows/pr_tests.yaml index 0783a01..3125473 100644 --- a/.github/workflows/pr_tests.yaml +++ b/.github/workflows/pr_tests.yaml @@ -14,20 +14,20 @@ jobs: name: My Job runs-on: ubuntu-latest - steps: - - name: Checkout code - id: code-checkout - uses: actions/checkout@v3 + steps: + - name: Checkout code + id: code-checkout + uses: actions/checkout@v3 - - name: find-pr - id: find-pr - uses: jwalton/gh-find-current-pr@v1 - with: - state: open + - name: find-pr + id: find-pr + uses: jwalton/gh-find-current-pr@v1 + with: + state: open - - name: job1 - id: job1 - run: echo "Your PR is ${PR}" - if: success() && steps.find-pr.outputs.number - env: - PR: ${{ steps.find-pr.outputs.pr }} + - name: job1 + id: job1 + run: echo "Your PR is ${PR}" + if: success() && steps.find-pr.outputs.number + env: + PR: ${{ steps.find-pr.outputs.pr }} From a11efd8559f93e3f000cfbc5911661bad47bbcf6 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 6 Sep 2023 15:06:19 -0700 Subject: [PATCH 5/7] added type to pr test --- .github/workflows/pr_tests.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr_tests.yaml b/.github/workflows/pr_tests.yaml index 3125473..6b9319d 100644 --- a/.github/workflows/pr_tests.yaml +++ b/.github/workflows/pr_tests.yaml @@ -5,6 +5,7 @@ on: branches-ignore: - 'main' pull_request: + types: [open] branches-ignore: - 'main' From ea4d0e080b32466f1592b0470ec2c9e2adb413ea Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 6 Sep 2023 15:09:28 -0700 Subject: [PATCH 6/7] updated pr pipeline --- .github/workflows/pr_tests.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/pr_tests.yaml b/.github/workflows/pr_tests.yaml index 6b9319d..dba5c53 100644 --- a/.github/workflows/pr_tests.yaml +++ b/.github/workflows/pr_tests.yaml @@ -6,8 +6,6 @@ on: - 'main' pull_request: types: [open] - branches-ignore: - - 'main' jobs: From 7ca3d9c687c25e78dcd7d7cc830f6423a16b12cf Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 6 Sep 2023 15:30:16 -0700 Subject: [PATCH 7/7] typo --- .github/workflows/pr_tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_tests.yaml b/.github/workflows/pr_tests.yaml index dba5c53..c6e865b 100644 --- a/.github/workflows/pr_tests.yaml +++ b/.github/workflows/pr_tests.yaml @@ -5,7 +5,7 @@ on: branches-ignore: - 'main' pull_request: - types: [open] + types: [opened] jobs: