mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
38 lines
1008 B
YAML
38 lines
1008 B
YAML
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
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
|
|
uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
submodules: recursive
|
|
|
|
- name: Check for latest tag
|
|
id: latest-tag
|
|
run: |
|
|
source ./scripts/tag_latest_release.sh $(echo ${{ github.event.release.tag_name }}) --dry-run
|
|
|
|
- name: Configure Git
|
|
run: |
|
|
git config user.name "$GITHUB_ACTOR"
|
|
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
|
|
|
- name: Run latest-tag
|
|
uses: ./.github/actions/latest-tag
|
|
if: (! ${{ steps.latest-tag.outputs.SKIP_TAG }} )
|
|
with:
|
|
description: Superset latest release
|
|
tag-name: latest
|
|
env:
|
|
GITHUB_TOKEN: ${{ github.token }}
|