Include workflow name in the context ref (#22728)

This commit is contained in:
Ibrahim Serdar Acikgoz
2023-03-30 14:01:55 +03:00
committed by GitHub
parent 9139f4be78
commit 5cc49cf881
5 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ on:
- mono-repo*
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
cancel-in-progress: ${{ !contains( github.ref , 'heads/ref/master') }}
defaults:
run:
shell: bash
+1 -1
View File
@@ -11,7 +11,7 @@ env:
go-version: "1.19.5"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
cancel-in-progress: ${{ !contains( github.ref , 'heads/ref/master') }}
jobs:
check-mocks:
name: Check mocks
+1 -1
View File
@@ -2,7 +2,7 @@ name: "CodeQL"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
cancel-in-progress: ${{ !contains( github.ref , 'heads/ref/master') }}
on:
pull_request:
+1 -1
View File
@@ -7,7 +7,7 @@ on:
- mono-repo*
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
cancel-in-progress: ${{ !contains( github.ref , 'heads/ref/master') }}
defaults:
run:
shell: bash
@@ -5,6 +5,10 @@ on:
schedule:
- cron: '44 6 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !contains( github.ref , 'heads/ref/master') }}
# Declare default permissions as read only.
permissions: read-all