Improve extension CI concurrency (#43935)
While this does work for PRs and such, it does not work with main... Hence, moving the token a few chars to the right to fix this issue. Release Notes: - N/A
This commit is contained in:
@@ -31,10 +31,7 @@ pub(crate) fn call_bump_version(
|
||||
) -> NamedJob<UsesJob> {
|
||||
let job = Job::default()
|
||||
.cond(Expression::new(format!(
|
||||
indoc! {
|
||||
"(github.event.action == 'labeled' && {} != 'patch') ||
|
||||
github.event_name == 'push'"
|
||||
},
|
||||
"github.event.action != 'labeled' || {} != 'patch'",
|
||||
bump_type.expr()
|
||||
)))
|
||||
.uses(
|
||||
|
||||
@@ -88,7 +88,7 @@ pub fn one_workflow_per_non_main_branch_and_token<T: AsRef<str>>(token: T) -> Co
|
||||
.group(format!(
|
||||
concat!(
|
||||
"${{{{ github.workflow }}}}-${{{{ github.ref_name }}}}-",
|
||||
"${{{{ github.ref_name == 'main' && github.sha || 'anysha{}' }}}}"
|
||||
"${{{{ github.ref_name == 'main' && github.sha || 'anysha' }}}}{}"
|
||||
),
|
||||
token.as_ref()
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user