build(deps-dev): bump types-setuptools from 69.2.0.20240317 to 69.5.0.20240522 #398
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: Check and create tag | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
new_version: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get version number | |
run: | | |
echo "VDA_VER=v$(cat vardautomation/_metadata.py | sed -nr "s/__version__ = '(.*)'/\1/p")" >> $GITHUB_ENV | |
- name: Check if version exists | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
uses: mukunku/[email protected] | |
id: tagcheck | |
with: | |
tag: ${{ env.VDA_VER }} | |
- name: Make tag | |
uses: actions/github-script@v6 | |
if: steps.tagcheck.outputs.exists == 'false' | |
with: | |
github-token: ${{ secrets.WORKFLOW_TOKEN }} | |
script: | | |
github.rest.git.createRef({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
ref: `refs/tags/${process.env.VDA_VER}`, | |
sha: context.sha | |
}) | |
- name: Fallback | |
if: steps.tagcheck.outputs.exists == 'true' | |
run: echo "Nothing to see here, move along citizen" |