Skip to content

Automate part of the release process #1

Automate part of the release process

Automate part of the release process #1

Workflow file for this run

---
name: Trigger release and bump version
on: # yamllint disable-line rule:truthy
pull_request:
types:
- closed
jobs:
trigger-release-process:
if: github.event.pull_request.merged == true && startswith(github.event.head_commit.message, 'Release ')
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Check head commit message
env:
head_commit_title: ${{ github.event.head_commit.message }}
run: |
python ./.github/scripts/validate_release_commit.py "$head_commit_title"
- name: Install commitizen
run: |
pip3 install commitizen
- name: Setup Github Actions git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "airflow-oss-bot"
- name: Tag and push tag for triggering release
run: |
git tag `cz version -p`
git push origin `cz version -p`
- name: Bump version for new development
run: |
make ASTRO_PROVIDER_VERSION=dev bump-version
git add .
git push origin main