diff --git a/.github/workflows/touchstone-comment.yaml b/.github/workflows/touchstone-comment.yaml index c289cd8e2..a1ce2e5be 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)"] @@ -15,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 99fdcd54d..1ef5b9c8d 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: | @@ -33,9 +39,9 @@ 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}} - 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 }}