Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
parity
Mirrored projects
polkadot-sdk
Commits
58d00df1
Commit
58d00df1
authored
4 years ago
by
Benjamin Kampmann
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Let's put up monthly pre-release tags (#8552)
* trying to monthly tag for the first time
parent
9852077d
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/.github/workflows/monthly-tag.yml
+40
-0
40 additions, 0 deletions
substrate/.github/workflows/monthly-tag.yml
with
40 additions
and
0 deletions
substrate/.github/workflows/monthly-tag.yml
0 → 100644
+
40
−
0
View file @
58d00df1
name
:
Monthly Snapshot Tag
on
:
schedule
:
-
cron
:
"
0
1
1
*
*"
workflow_dispatch
:
jobs
:
build
:
name
:
Take Snapshot
runs-on
:
ubuntu-latest
steps
:
-
name
:
Get the tags by date
id
:
tags
run
:
|
echo "::set-output name=new::$(date +'monthly-%Y-%m')"
echo "::set-output name=old::$(date -d'1 month ago' +'monthly-%Y-%m')"
-
name
:
Checkout branch "master"
uses
:
actions/checkout@v2
with
:
ref
:
'
master'
-
name
:
Generate changelog
id
:
changelog
run
:
|
echo "# Automatic snapshot pre-release ${{ steps.tags.outputs.new }}" > Changelog.md
echo "" >> Changelog.md
echo "## Changes since last snapshot (${{ steps.tags.outputs.old }})" >> Changelog.md
echo "" >> Changelog.md
GITHUB_DEPLOY_TOKEN=${{ secrets.GITHUB_TOKEN }} ./.maintain/gitlab/generate_changelog.sh ${{ steps.tags.outputs.old }} >> Changelog.md
-
name
:
Release snapshot
id
:
release-snapshot
uses
:
actions/create-release@latest
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
with
:
tag_name
:
${{ steps.tags.outputs.new }}
release_name
:
${{ steps.tags.outputs.new }}
draft
:
false
prerelease
:
true
body_path
:
Changelog.md
This diff is collapsed.
Click to expand it.
Preview
0%
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