From 37916d3e93009b17f0ba500d7428478efb021ebc Mon Sep 17 00:00:00 2001 From: Jesse Newland Date: Sun, 26 Jul 2020 09:05:36 -0500 Subject: [PATCH 01/10] Create example.yml --- .github/workflows/example.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/example.yml diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml new file mode 100644 index 0000000..f2dba5a --- /dev/null +++ b/.github/workflows/example.yml @@ -0,0 +1,33 @@ +name: example +on: + pull_request: + types: [synchronize] + +jobs: + ten: + runs-on: ubuntu-latest + steps: + - run: sleep 10 + + five: + runs-on: ubuntu-latest + steps: + - run: sleep 5 + + checkrun-timechart: + runs-on: ubuntu-latest + steps: + - name: wait + uses: "WyriHaximus/github-action-wait-for-status@4c9e58820905eb246e88a413c39a9104cccf7e80" + with: + ignoreActions: checkrun-timechart + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + + - name: checkrun-timechart + uses: urcomputeringpal/checkrun-timechart-action@v0.0.4 + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + with: + SHA: "${{ github.event.pull_request.head.sha }}" + TRACE_START: "${{ github.event.pull_request.updated_at }}" From 929558185fbd886668cc362eb9b4757db308e753 Mon Sep 17 00:00:00 2001 From: Jesse Newland Date: Sun, 26 Jul 2020 09:07:38 -0500 Subject: [PATCH 02/10] on push --- .github/workflows/example.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index f2dba5a..8583bc7 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -1,7 +1,6 @@ name: example on: - pull_request: - types: [synchronize] + push: jobs: ten: From ddf70083ee7f65c160df375749a2e1ca54257c33 Mon Sep 17 00:00:00 2001 From: Jesse Newland Date: Sun, 26 Jul 2020 09:18:57 -0500 Subject: [PATCH 03/10] $GITHUB_SHA, back to PR event --- .github/workflows/example.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index 8583bc7..9af2807 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -1,6 +1,9 @@ name: example on: - push: + pull_request: + types: + - labeled + - synchronize jobs: ten: @@ -28,5 +31,5 @@ jobs: env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: - SHA: "${{ github.event.pull_request.head.sha }}" + SHA: "$GITHUB_SHA" TRACE_START: "${{ github.event.pull_request.updated_at }}" From f4b6319db2b2622088fe811ce158d7ad05997a27 Mon Sep 17 00:00:00 2001 From: Jesse Newland Date: Thu, 8 Oct 2020 17:28:36 -0500 Subject: [PATCH 04/10] run dev version too --- .github/workflows/example.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index 9af2807..14b54de 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -26,10 +26,18 @@ jobs: env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - - name: checkrun-timechart + - name: checkrun-timechart-release uses: urcomputeringpal/checkrun-timechart-action@v0.0.4 env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: SHA: "$GITHUB_SHA" TRACE_START: "${{ github.event.pull_request.updated_at }}" + + - name: checkrun-timechart-dev + uses: ./ + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + with: + SHA: "$GITHUB_SHA" + TRACE_START: "${{ github.event.pull_request.updated_at }}" From 7c651b68b94cbf6e76f7db7088f83feed82d7838 Mon Sep 17 00:00:00 2001 From: Jesse Newland Date: Thu, 8 Oct 2020 17:30:58 -0500 Subject: [PATCH 05/10] checkout --- .github/workflows/example.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index 14b54de..db0086d 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -19,12 +19,7 @@ jobs: checkrun-timechart: runs-on: ubuntu-latest steps: - - name: wait - uses: "WyriHaximus/github-action-wait-for-status@4c9e58820905eb246e88a413c39a9104cccf7e80" - with: - ignoreActions: checkrun-timechart - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + - uses: actions/checkout@v2 - name: checkrun-timechart-release uses: urcomputeringpal/checkrun-timechart-action@v0.0.4 From 0ab71538d2d1e9a3cd4710f8b44e1ac737eb6959 Mon Sep 17 00:00:00 2001 From: Jesse Newland Date: Thu, 8 Oct 2020 17:32:41 -0500 Subject: [PATCH 06/10] sha --- .github/workflows/example.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index db0086d..2ed5970 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -26,7 +26,7 @@ jobs: env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: - SHA: "$GITHUB_SHA" + SHA: "${{ github.event.pull_request.head.sha }}" TRACE_START: "${{ github.event.pull_request.updated_at }}" - name: checkrun-timechart-dev @@ -34,5 +34,5 @@ jobs: env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: - SHA: "$GITHUB_SHA" + SHA: "${{ github.event.pull_request.head.sha }}" TRACE_START: "${{ github.event.pull_request.updated_at }}" From 77556bbcb1f367969babdbec4b0294fc4032eced Mon Sep 17 00:00:00 2001 From: Jesse Newland Date: Thu, 8 Oct 2020 17:35:51 -0500 Subject: [PATCH 07/10] basically a test at this point --- .github/workflows/example.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index 2ed5970..1077db5 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -16,6 +16,11 @@ jobs: steps: - run: sleep 5 + docker: + runs-on: ubuntu-latest + steps: + - run: echo a duplicate + checkrun-timechart: runs-on: ubuntu-latest steps: @@ -36,3 +41,11 @@ jobs: with: SHA: "${{ github.event.pull_request.head.sha }}" TRACE_START: "${{ github.event.pull_request.updated_at }}" + + - name: checkrun-timechart-github-sha + uses: ./ + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + with: + SHA: "${{ github.sha }}" + TRACE_START: "${{ github.event.pull_request.updated_at }}" From ea78116068bf7af8580fe80198acd5a0be21be7d Mon Sep 17 00:00:00 2001 From: Jesse Newland Date: Thu, 8 Oct 2020 17:37:19 -0500 Subject: [PATCH 08/10] Update example.yml --- .github/workflows/example.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index 1077db5..6259703 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -16,11 +16,6 @@ jobs: steps: - run: sleep 5 - docker: - runs-on: ubuntu-latest - steps: - - run: echo a duplicate - checkrun-timechart: runs-on: ubuntu-latest steps: From 260e5507255d2127a160dd0f1dd75b8c5aa6256d Mon Sep 17 00:00:00 2001 From: Jesse Newland Date: Tue, 27 Oct 2020 08:12:05 -0500 Subject: [PATCH 09/10] bump --- .github/workflows/example.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index 6259703..53ee9c9 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/checkout@v2 - name: checkrun-timechart-release - uses: urcomputeringpal/checkrun-timechart-action@v0.0.4 + uses: urcomputeringpal/checkrun-timechart-action@v0.0.5 env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: @@ -41,6 +41,3 @@ jobs: uses: ./ env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - with: - SHA: "${{ github.sha }}" - TRACE_START: "${{ github.event.pull_request.updated_at }}" From 6f536ceaaf422714fbdf2dc0139a33de94f83434 Mon Sep 17 00:00:00 2001 From: Jesse Newland Date: Wed, 17 May 2023 07:29:38 -0500 Subject: [PATCH 10/10] Update example.yml --- .github/workflows/example.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index 53ee9c9..8c6705b 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -19,15 +19,8 @@ jobs: checkrun-timechart: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - name: checkrun-timechart-release - uses: urcomputeringpal/checkrun-timechart-action@v0.0.5 - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - with: - SHA: "${{ github.event.pull_request.head.sha }}" - TRACE_START: "${{ github.event.pull_request.updated_at }}" - name: checkrun-timechart-dev uses: ./ @@ -36,8 +29,4 @@ jobs: with: SHA: "${{ github.event.pull_request.head.sha }}" TRACE_START: "${{ github.event.pull_request.updated_at }}" - - - name: checkrun-timechart-github-sha - uses: ./ - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + SUMMARY: "true"