mirror of
https://github.com/apache/superset.git
synced 2026-04-07 18:35:15 +00:00
chore: add latest tag action (#11148)
* add latest tag action * update documentation with latest tag info * Python in docs doesn't need v3 reference * add check that latest tag is truly a later version * remove rc from acceptable tags * move tag script to seperate file * add a check that the tag exists
This commit is contained in:
committed by
GitHub
parent
1a20552c2b
commit
895fa19d8d
32
.github/workflows/latest-release-tag.yml
vendored
Normal file
32
.github/workflows/latest-release-tag.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Tags
|
||||
on:
|
||||
release:
|
||||
types: [published] # This makes it run only when a new released is published
|
||||
|
||||
jobs:
|
||||
latest-release:
|
||||
name: Add/update tag to new release
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Check for latest tag
|
||||
id: latest-tag
|
||||
run: |
|
||||
source ./scripts/tag_latest_release.sh $(echo ${{ github.event.release.tag_name }}) --dry-run
|
||||
|
||||
if ${SKIP_TAG}
|
||||
then
|
||||
echo "::set-env name=skip_tag::true"
|
||||
fi
|
||||
|
||||
- name: Run latest-tag
|
||||
uses: EndBug/latest-tag@latest
|
||||
if: (! env.skip_tag )
|
||||
with:
|
||||
description: Superset latest release
|
||||
tag-name: latest
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user