Skip to content

build(deps-dev): bump types-setuptools from 69.2.0.20240317 to 70.1.0.20240627 #417

build(deps-dev): bump types-setuptools from 69.2.0.20240317 to 70.1.0.20240627

build(deps-dev): bump types-setuptools from 69.2.0.20240317 to 70.1.0.20240627 #417

Workflow file for this run

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/tag-exists-action@v1.1.0
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"