From 162634673471e69b5e1cdb9d87e54c477e9a8829 Mon Sep 17 00:00:00 2001 From: Derek Kershner <25798427+dkershner6@users.noreply.github.com> Date: Thu, 26 Aug 2021 18:35:08 -0700 Subject: [PATCH 01/13] Update action.yml --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index c76ab77..04206f5 100644 --- a/action.yml +++ b/action.yml @@ -27,7 +27,9 @@ runs: with: text: ${{ inputs.conditionals-with-values }} regex: 'true\s*=>\s*(.*)?$' - - run: echo ${{ steps.parse-value.outputs.group1 }} + - run: echo match - ${{ steps.parse-value.outputs.match }} + shell: bash + - run: echo value - ${{ steps.parse-value.outputs.group1 }} shell: bash - name: Determine Message From 0d21a7346ba73c15fe6f0ca669204bf40a431222 Mon Sep 17 00:00:00 2001 From: Derek Kershner <25798427+dkershner6@users.noreply.github.com> Date: Thu, 26 Aug 2021 18:36:44 -0700 Subject: [PATCH 02/13] Update pr-main.yml --- .github/workflows/pr-main.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/pr-main.yml b/.github/workflows/pr-main.yml index 5426f85..0cf953d 100644 --- a/.github/workflows/pr-main.yml +++ b/.github/workflows/pr-main.yml @@ -23,6 +23,20 @@ jobs: - name: Fail on non-correct answer if: ${{ steps.switch-case.outputs.value != 'correctAnswer' }} run: 'echo "No version change :/" && exit 1' + + version-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: dkershner6/npm-version-check-with-comment-action@v1 + id: version-check + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + - run: echo version changed - ${{ steps.version-check.outputs.version-did-change }} + + - name: Fail on no version updated + if: ${{ steps.version-check.outputs.version-did-change == 'false' }} + run: 'echo "No version change :/" && exit 1' auto-approve-pr: runs-on: ubuntu-latest From 676bbf3b773361e69f5383844bda9d3da32f4fe2 Mon Sep 17 00:00:00 2001 From: Derek Kershner <25798427+dkershner6@users.noreply.github.com> Date: Thu, 26 Aug 2021 18:38:28 -0700 Subject: [PATCH 03/13] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 04206f5..16a2106 100644 --- a/action.yml +++ b/action.yml @@ -27,7 +27,7 @@ runs: with: text: ${{ inputs.conditionals-with-values }} regex: 'true\s*=>\s*(.*)?$' - - run: echo match - ${{ steps.parse-value.outputs.match }} + - run: echo match - ${{ steps.parse-value.outputs.match }} shell: bash - run: echo value - ${{ steps.parse-value.outputs.group1 }} shell: bash From e5a0a4390db1f376de4bab606c80ac7a0894bdd7 Mon Sep 17 00:00:00 2001 From: Derek Kershner <25798427+dkershner6@users.noreply.github.com> Date: Thu, 26 Aug 2021 18:38:59 -0700 Subject: [PATCH 04/13] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1587a66..ca84e70 100644 --- a/package.json +++ b/package.json @@ -1,3 +1,3 @@ { - "version": "1.0.0" + "version": "1.0.1" } From efd927cd039c2b19b9ecb5ee8e0d31537b75889f Mon Sep 17 00:00:00 2001 From: Derek Kershner <25798427+dkershner6@users.noreply.github.com> Date: Thu, 26 Aug 2021 18:42:36 -0700 Subject: [PATCH 05/13] Update action.yml --- action.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 16a2106..518a02d 100644 --- a/action.yml +++ b/action.yml @@ -27,9 +27,7 @@ runs: with: text: ${{ inputs.conditionals-with-values }} regex: 'true\s*=>\s*(.*)?$' - - run: echo match - ${{ steps.parse-value.outputs.match }} - shell: bash - - run: echo value - ${{ steps.parse-value.outputs.group1 }} + - run: echo match - ${{ steps.parse-value.outputs.match }} / value - ${{ steps.parse-value.outputs.group1 }} shell: bash - name: Determine Message From e9e16a38624bcf088509eb22748657eaf90cd6f5 Mon Sep 17 00:00:00 2001 From: Derek Kershner <25798427+dkershner6@users.noreply.github.com> Date: Thu, 26 Aug 2021 18:43:13 -0700 Subject: [PATCH 06/13] Update pr-main.yml --- .github/workflows/pr-main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr-main.yml b/.github/workflows/pr-main.yml index 0cf953d..2c00903 100644 --- a/.github/workflows/pr-main.yml +++ b/.github/workflows/pr-main.yml @@ -16,6 +16,7 @@ jobs: conditionals-with-values: | ${{ 'test' == 'not-test' }} => shouldnt be this one ${{ 'test' == 'test' }} => correctAnswer + true=>notThisOneEitherAlreadyReturned - run: echo ${{ steps.switch-case.outputs.value }} From 89e5eff999eb9e27fb9f461b6956afa3712b2011 Mon Sep 17 00:00:00 2001 From: Derek Kershner <25798427+dkershner6@users.noreply.github.com> Date: Thu, 26 Aug 2021 18:46:06 -0700 Subject: [PATCH 07/13] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 518a02d..6731bcc 100644 --- a/action.yml +++ b/action.yml @@ -26,7 +26,7 @@ runs: id: parse-value with: text: ${{ inputs.conditionals-with-values }} - regex: 'true\s*=>\s*(.*)?$' + regex: 'true\s*=>\s*(.*?)?$' - run: echo match - ${{ steps.parse-value.outputs.match }} / value - ${{ steps.parse-value.outputs.group1 }} shell: bash From b313051a45056bea10faa8022522677be323ac0a Mon Sep 17 00:00:00 2001 From: Derek Kershner <25798427+dkershner6@users.noreply.github.com> Date: Thu, 26 Aug 2021 18:49:45 -0700 Subject: [PATCH 08/13] Update action.yml --- action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 6731bcc..010d170 100644 --- a/action.yml +++ b/action.yml @@ -27,7 +27,12 @@ runs: with: text: ${{ inputs.conditionals-with-values }} regex: 'true\s*=>\s*(.*?)?$' - - run: echo match - ${{ steps.parse-value.outputs.match }} / value - ${{ steps.parse-value.outputs.group1 }} + - run: "echo ------------- Regex Results ------------" + - run: "echo match - ${{ steps.parse-value.outputs.match }}" + shell: bash + - run: "echo value - ${{ steps.parse-value.outputs.group1 }}" + shell: bash + - run: "echo value2 - ${{ steps.parse-value.outputs.group2 }}" shell: bash - name: Determine Message From e114044f319eef39070ba49d201428de93df35a3 Mon Sep 17 00:00:00 2001 From: Derek Kershner <25798427+dkershner6@users.noreply.github.com> Date: Thu, 26 Aug 2021 18:50:29 -0700 Subject: [PATCH 09/13] Update action.yml --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index 010d170..de13ec2 100644 --- a/action.yml +++ b/action.yml @@ -28,6 +28,7 @@ runs: text: ${{ inputs.conditionals-with-values }} regex: 'true\s*=>\s*(.*?)?$' - run: "echo ------------- Regex Results ------------" + shell: bash - run: "echo match - ${{ steps.parse-value.outputs.match }}" shell: bash - run: "echo value - ${{ steps.parse-value.outputs.group1 }}" From 0ce0a21e424b0603a0551066ddde5bbcc74bb691 Mon Sep 17 00:00:00 2001 From: Derek Kershner <25798427+dkershner6@users.noreply.github.com> Date: Thu, 26 Aug 2021 18:53:05 -0700 Subject: [PATCH 10/13] Update pr-main.yml --- .github/workflows/pr-main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-main.yml b/.github/workflows/pr-main.yml index 2c00903..0c42529 100644 --- a/.github/workflows/pr-main.yml +++ b/.github/workflows/pr-main.yml @@ -16,14 +16,15 @@ jobs: conditionals-with-values: | ${{ 'test' == 'not-test' }} => shouldnt be this one ${{ 'test' == 'test' }} => correctAnswer - true=>notThisOneEitherAlreadyReturned + false=>notThisOneEither + false => nope - run: echo ${{ steps.switch-case.outputs.value }} # Optionally fail the workflow, should you choose - name: Fail on non-correct answer if: ${{ steps.switch-case.outputs.value != 'correctAnswer' }} - run: 'echo "No version change :/" && exit 1' + run: 'echo "Not Correct Answer :/" && exit 1' version-check: runs-on: ubuntu-latest From ee04e387407c223a23143e1fad8f35a18a22e9be Mon Sep 17 00:00:00 2001 From: Derek Kershner <25798427+dkershner6@users.noreply.github.com> Date: Thu, 26 Aug 2021 18:56:36 -0700 Subject: [PATCH 11/13] Update action.yml --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index de13ec2..59bb259 100644 --- a/action.yml +++ b/action.yml @@ -26,7 +26,8 @@ runs: id: parse-value with: text: ${{ inputs.conditionals-with-values }} - regex: 'true\s*=>\s*(.*?)?$' + regex: 'true\s*=>\s*(.*)?$' + flags: m - run: "echo ------------- Regex Results ------------" shell: bash - run: "echo match - ${{ steps.parse-value.outputs.match }}" From e8c5fdb7b044217bdb8fb60bb28cddeea14d4608 Mon Sep 17 00:00:00 2001 From: Derek Kershner <25798427+dkershner6@users.noreply.github.com> Date: Thu, 26 Aug 2021 18:57:46 -0700 Subject: [PATCH 12/13] Update pr-main.yml --- .github/workflows/pr-main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-main.yml b/.github/workflows/pr-main.yml index 0c42529..59b3eec 100644 --- a/.github/workflows/pr-main.yml +++ b/.github/workflows/pr-main.yml @@ -16,7 +16,7 @@ jobs: conditionals-with-values: | ${{ 'test' == 'not-test' }} => shouldnt be this one ${{ 'test' == 'test' }} => correctAnswer - false=>notThisOneEither + true=>notThisOneEitherAlreadyReturned false => nope - run: echo ${{ steps.switch-case.outputs.value }} From 8318fe69ef83c861b5eca0b8d2758921a858866e Mon Sep 17 00:00:00 2001 From: Derek Kershner <25798427+dkershner6@users.noreply.github.com> Date: Thu, 26 Aug 2021 18:59:52 -0700 Subject: [PATCH 13/13] Update action.yml --- action.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 59bb259..013ff42 100644 --- a/action.yml +++ b/action.yml @@ -30,11 +30,9 @@ runs: flags: m - run: "echo ------------- Regex Results ------------" shell: bash - - run: "echo match - ${{ steps.parse-value.outputs.match }}" + - run: "echo found - ${{ steps.parse-value.outputs.match != '' }}" shell: bash - - run: "echo value - ${{ steps.parse-value.outputs.group1 }}" - shell: bash - - run: "echo value2 - ${{ steps.parse-value.outputs.group2 }}" + - run: "echo group1 - ${{ steps.parse-value.outputs.group1 }}" shell: bash - name: Determine Message