Skip to content

build: Bump the ci-dependencies group across 2 directories with 4 updates #92

build: Bump the ci-dependencies group across 2 directories with 4 updates

build: Bump the ci-dependencies group across 2 directories with 4 updates #92

Workflow file for this run

defaults:
run:
shell: "bash"
name: "Auto Create Release Tag"
on:
pull_request:
types: ["closed"]
env:
BADABUMP_VERSION: "22.1.0"
PYTHON_VERSION: "3.12.1"
PYTHONUNBUFFERED: "1"
jobs:
create_release_tag:
if: "${{ startsWith(github.head_ref, 'chore/release-') && github.event.pull_request.merged == true }}"
name: "Auto Create Release Tag"
runs-on: "ubuntu-latest"
steps:
- id: "token"
uses: "tibdex/github-app-token@v2.1.0"
with:
app_id: "${{ secrets.BADABUMP_APP_ID }}"
private_key: "${{ secrets.BADABUMP_APP_PRIVATE_KEY }}"
- uses: "actions/checkout@v5.0.0"
with:
ref: "main"
token: "${{ steps.token.outputs.token }}"
- name: "Install Python"
uses: "actions/setup-python@v6.0.0"
with:
python-version: "${{ env.PYTHON_VERSION }}"
- name: "Install badabump"
run: "python3 -m pip install badabump==${{ env.BADABUMP_VERSION }}"
- id: "badabump"
name: "Run badabump"
run: "python3 -m badabump.ci prepare_tag"
- name: "Save tag message into the file"
run: |
with open("./tag_message.txt", "w+") as handler:
handler.write("""${{ steps.badabump.outputs.tag_message }}""")
shell: "python"
- name: "Create release tag from latest commit"
run: |
set -euo pipefail
git config user.name badabump-release-bot[bot]
git config user.email badabump-release-bot[bot]@users.noreply.github.com
git tag -a ${{ steps.badabump.outputs.tag_name }} -F ./tag_message.txt
git push --tag