Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Alex
next.js
Commits
f241f44b
Unverified
Commit
f241f44b
authored
Nov 30, 2023
by
Zack Tanner
Committed by
GitHub
Nov 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skip release if no new commits (#59134)
Prevents publishing canaries if there are no changes Closes NEXT-1748
parent
73d4ca57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
trigger_release.yml
.github/workflows/trigger_release.yml
+12
-1
No files found.
.github/workflows/trigger_release.yml
View file @
f241f44b
...
@@ -51,7 +51,18 @@ jobs:
...
@@ -51,7 +51,18 @@ jobs:
-
run
:
git clone https://github.com/vercel/next.js.git --depth=25 .
-
run
:
git clone https://github.com/vercel/next.js.git --depth=25 .
-
run
:
git describe || echo 'failed to get tag'
-
name
:
Get commit of the latest tag
run
:
echo "LATEST_TAG_COMMIT=$(git rev-list -n 1 $(git describe --tags --abbrev=0))" >> $GITHUB_ENV
-
name
:
Get latest commit
run
:
echo "LATEST_COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV
-
name
:
Check if new commits since last tag
run
:
|
if [ "$LATEST_TAG" = "$LATEST_COMMIT" ]; then
echo "No new commits. Exiting..."
exit 1
fi
# https://github.com/actions/virtual-environments/issues/1187
# https://github.com/actions/virtual-environments/issues/1187
-
name
:
tune linux network
-
name
:
tune linux network
...
...
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