Release 0.35.1 #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Automated Latest Release Tag | |
on: | |
release: | |
types: [published] | |
env: | |
TAG_NAME: latest_release | |
jobs: | |
post_release_tag_latest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout PennyLane-Lightning | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Overwrite tag | |
run: | | |
git config --local user.email 'github-actions[bot]@users.noreply.github.com' | |
git config --local user.name "Latest tag update bot" | |
git tag -d $TAG_NAME || true | |
if git push --delete origin $TAG_NAME; then | |
echo "Remove tag $TAG_NAME from remote." | |
else | |
echo "$TAG_NAME does not exist in remote. Just proceed." | |
fi | |
git tag $TAG_NAME | |
git push --tags |