eschutho commented on a change in pull request #11148:
URL:
https://github.com/apache/incubator-superset/pull/11148#discussion_r540603662
##########
File path: .github/workflows/latest-release-tag.yml
##########
@@ -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 }}
Review comment:
@ktmud may have some insight on using `secrets.GITHUB_TOKEN` vs
`github.GITHUB_TOKEN`. I haven't seen the latter in documentation, although it
seems that using it over the `secrets` could be worth looking at.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]