From 949c6c92381276659f758efbc0fc5303da4b9357 Mon Sep 17 00:00:00 2001 From: Dominic Kempf Date: Mon, 11 Mar 2024 10:10:38 +0100 Subject: [PATCH] Remove experiments for now --- .github/workflows/bump.yml | 47 -------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 .github/workflows/bump.yml diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml deleted file mode 100644 index 9366eea..0000000 --- a/.github/workflows/bump.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Automatically bump the package version - -on: - push: - branches: - - main - -jobs: - bump: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - uses: actions/setup-python@v5 - - - name: Install dependencies - run: | - pip install setuptools_scm - - - name: Figure out the next tag - shell: python - id: get_next_tag - run: | - import os - import setuptools_scm - from packaging import version - v = version.parse(setuptools_scm.get_version()) - with open(os.environ['GITHUB_OUTPUT'], 'a') as fh: - print(f'tag=v{v.major}.{v.minor}.{v.micro + 1}', file=fh) - - - name: Debug the next tag - run: echo ${{ steps.get_next_tag.outputs.tag }} - - - uses: actions/github-script@v7 - with: - script: | - const newTag = await github.rest.git.createTag({ - context.repo.owner, - context.repo.repo, - tag: '${{ steps.get_next_tag.outputs.tag }}', - object: context.sha, - type: 'commit', - }) - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}