Automatically tag release candidates (#6416)

Format similar to Ubuntu: YY.MM.N

Discussion:

  https://github.com/getredash/redash/discussions/6411

1. Updates version in:

  package.json
  redash/__init__.py

2. Sets version tag
This commit is contained in:
Eric Radman
2023-09-01 21:10:41 -04:00
committed by GitHub
parent 7b722a1067
commit ab71bded7d
3 changed files with 28 additions and 2 deletions

26
.github/workflows/periodic-snapshot.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Periodic Snapshot
# 10 minutes after midnight on the first of every month
on:
schedule:
- cron: "10 0 1 * *"
permissions:
contents: write
jobs:
bump-version-and-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
date="$(date +%y.%m).0-dev"
gawk -i inplace -F: -v q=\" -v tag=$date '/^ "version": / { print $1 FS, q tag q ","; next} { print }' package.json
gawk -i inplace -F= -v q=\" -v tag=$date '/^__version__ =/ { print $1 FS, q tag q; next} { print }' redash/__init__.py
git config user.name github-actions
git config user.email github-actions@github.com
git add package.json redash/__init__.py
git commit -m "Shapshot: ${date}"
git push origin
git tag $date
git push origin $date

View File

@@ -1,6 +1,6 @@
{
"name": "redash-client",
"version": "11.0.0-dev",
"version": "23.09.0-dev",
"description": "The frontend part of Redash.",
"main": "index.js",
"scripts": {

View File

@@ -14,7 +14,7 @@ from redash.app import create_app # noqa
from redash.destinations import import_destinations
from redash.query_runner import import_query_runners
__version__ = "11.0.0-dev"
__version__ = "23.09.0-dev"
if os.environ.get("REMOTE_DEBUG"):