Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
0969496a
Commit
0969496a
authored
Dec 15, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
label issues in pre-release only on initial tag run
parent
28ed53cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
pre-release.yml
.github/workflows/pre-release.yml
+21
-1
No files found.
.github/workflows/pre-release.yml
View file @
0969496a
...
...
@@ -4,7 +4,7 @@ on:
workflow_dispatch
:
push
:
tags
:
-
'
v[0-9]+.[0-9]+.[0-9]+-[a-z]+*'
# e.g v1.2.3-alpha
-
'
v[0-9]+.[0-9]+.[0-9]+-[a-z]+*'
# e.g v1.2.3-alpha
.2
jobs
:
checks
:
...
...
@@ -24,9 +24,29 @@ jobs:
uses
:
"
./.github/workflows/e2e-tests.yml"
secrets
:
inherit
version
:
name
:
Pre-release version info
runs-on
:
ubuntu-latest
outputs
:
is_initial
:
${{ steps.is_initial.outputs.result }}
steps
:
-
name
:
Determine if it is the initial version of the pre-release
id
:
is_initial
uses
:
actions/github-script@v6
env
:
TAG
:
${{ github.ref_name }}
with
:
script
:
|
const tag = process.env.TAG;
const REGEXP = /^v[0-9]+.[0-9]+.[0-9]+-[a-z]+((\.|-)\d+)?$/i;
const match = tag.match(REGEXP);
return match && !match[1] ? 'true' : 'false';
label_issues
:
name
:
Add pre-release label to issues
uses
:
'
./.github/workflows/label-issues-in-release.yml'
needs
:
[
version
]
if
:
${{ needs.version.outputs.is_initial == 'true' }}
with
:
tag
:
${{ github.ref_name }}
label_name
:
'
pre-release'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment