Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
f76c600c
Commit
f76c600c
authored
2 years ago
by
Sergey Bronnikov
Committed by
Yaroslav Lobankov
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ci: cancel publishing workflow run when outdated
See
d3f32d18
for explanation. NO_CHANGELOG=ci NO_DOC=ci NO_TEST=ci
parent
34a7f1ec
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/publish-module-api-doc.yaml
+20
-0
20 additions, 0 deletions
.github/workflows/publish-module-api-doc.yaml
with
20 additions
and
0 deletions
.github/workflows/publish-module-api-doc.yaml
+
20
−
0
View file @
f76c600c
...
@@ -7,6 +7,26 @@ on:
...
@@ -7,6 +7,26 @@ on:
types
:
[
opened
,
reopened
,
synchronize
,
labeled
]
types
:
[
opened
,
reopened
,
synchronize
,
labeled
]
workflow_dispatch
:
workflow_dispatch
:
concurrency
:
# Update of a developer branch cancels the previously scheduled workflow
# run for this branch. However, the 'master' branch, release branch (1.10,
# 2.8, etc.), and tag workflow runs are never canceled.
#
# We use a trick here: define the concurrency group as 'workflow run ID' +
# 'workflow run attempt' because it is a unique combination for any run.
# So it effectively discards grouping.
#
# Important: we cannot use `github.sha` as a unique identifier because
# pushing a tag may cancel a run that works on a branch push event.
group
:
${{ (
github.ref == 'refs/heads/master' ||
github.ref == 'refs/heads/1.10' ||
startsWith(github.ref, 'refs/heads/2.') ||
startsWith(github.ref, 'refs/tags/')) &&
format('{0}-{1}', github.run_id, github.run_attempt) ||
format('{0}-{1}', github.workflow, github.ref) }}
cancel-in-progress
:
true
jobs
:
jobs
:
publish-api-doc
:
publish-api-doc
:
# Run on push to the branch 'master' or on pull request if the 'full-ci'
# Run on push to the branch 'master' or on pull request if the 'full-ci'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment