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:
Elizabeth Thompson
2020-12-17 10:50:44 -08:00
committed by GitHub
parent 1a20552c2b
commit 895fa19d8d
6 changed files with 171 additions and 2 deletions

View 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 }}