Skip to content

Adjust workflow for testing purposes #42

Adjust workflow for testing purposes

Adjust workflow for testing purposes #42

name: Bump version and create release
on:
push:
jobs:
compute-version:
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
new_version: ${{ steps.bump_version.outputs.new_version }}
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Compute new version
id: bump_version
env:
PR_BODY: ${{ github.event.pull_request.body }}
run: |
source version
new_version=$(.github/workflows/compute_version.sh "$VERSION" "${PR_BODY//[^a-zA-Z0-9# $'\n']/}")
echo "new_version=$new_version" >> $GITHUB_OUTPUT
update-version-file:
needs: compute-version
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
- name: Update version file with new version
run: |
echo "New version: ${{ needs.compute-version.outputs.new_version }}"
echo "VERSION=${{ needs.compute-version.outputs.new_version }}" > version