From 39b5870ef5b306759d304bf4350b4f124ba074c6 Mon Sep 17 00:00:00 2001 From: Lorenz Walthert Date: Fri, 14 Jan 2022 21:27:09 +0100 Subject: [PATCH 1/3] replace action with template --- .github/workflows/touchstone-receive.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/touchstone-receive.yaml b/.github/workflows/touchstone-receive.yaml index 99fdcd54d..bd4ee2b12 100644 --- a/.github/workflows/touchstone-receive.yaml +++ b/.github/workflows/touchstone-receive.yaml @@ -1,5 +1,11 @@ name: Continuous Benchmarks (Receive) + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true + on: pull_request + jobs: prepare: runs-on: ubuntu-latest @@ -9,7 +15,7 @@ jobs: - name: Checkout repo uses: actions/checkout@v2 with: - fetch-depth: 0 + fetch-depth: 0 - id: read_touchstone_config run: | @@ -36,6 +42,6 @@ jobs: - uses: lorenzwalthert/touchstone/actions/receive@main with: cache-version: 1 - benchmarking_repo: ${{matrix.config.benchmarking_repo}} - benchmarking_ref: ${{matrix.config.benchmarking_ref}} - benchmarking_path: ${{matrix.config.benchmarking_path}} + benchmarking_repo: ${{ matrix.config.benchmarking_repo }} + benchmarking_ref: ${{ matrix.config.benchmarking_ref }} + benchmarking_path: ${{ matrix.config.benchmarking_path }} From 0930c167268215e2893c90b312aa11d237da2a3d Mon Sep 17 00:00:00 2001 From: Lorenz Walthert Date: Fri, 14 Jan 2022 21:27:56 +0100 Subject: [PATCH 2/3] add concurency --- .github/workflows/touchstone-comment.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/touchstone-comment.yaml b/.github/workflows/touchstone-comment.yaml index c289cd8e2..4d33e8a98 100644 --- a/.github/workflows/touchstone-comment.yaml +++ b/.github/workflows/touchstone-comment.yaml @@ -1,7 +1,9 @@ name: Continuous Benchmarks (Comment) -# read-write repo token -# access to secrets +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true + on: workflow_run: workflows: ["Continuous Benchmarks (Receive)"] From b02e471cdc5ffa3ee59ce50c4422e04d58960219 Mon Sep 17 00:00:00 2001 From: Lorenz Walthert Date: Sat, 15 Jan 2022 19:15:02 +0100 Subject: [PATCH 3/3] test PR #99 --- .github/workflows/touchstone-comment.yaml | 4 +++- .github/workflows/touchstone-receive.yaml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/touchstone-comment.yaml b/.github/workflows/touchstone-comment.yaml index 4d33e8a98..a1ce2e5be 100644 --- a/.github/workflows/touchstone-comment.yaml +++ b/.github/workflows/touchstone-comment.yaml @@ -17,4 +17,6 @@ jobs: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }} steps: - - uses: lorenzwalthert/touchstone/actions/comment@main + - uses: lorenzwalthert/touchstone/actions/comment@add-pat + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/touchstone-receive.yaml b/.github/workflows/touchstone-receive.yaml index bd4ee2b12..1ef5b9c8d 100644 --- a/.github/workflows/touchstone-receive.yaml +++ b/.github/workflows/touchstone-receive.yaml @@ -39,7 +39,7 @@ jobs: RSPM: ${{ matrix.config.rspm }} GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: lorenzwalthert/touchstone/actions/receive@main + - uses: lorenzwalthert/touchstone/actions/receive@add-pat with: cache-version: 1 benchmarking_repo: ${{ matrix.config.benchmarking_repo }}