Release 1.19.4 #261
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.BOT_ACCESS_TOKEN }} | |
- name: Check head commit message | |
id: check_head_commit_message | |
continue-on-error: true | |
run: | | |
head_commit_message=`git log --format=%s -1` | |
python ./.github/scripts/validate_release_commit.py "$head_commit_message" | |
if [ $? -eq 1 ] | |
then | |
echo "valid_release_message=False" >> $GITHUB_OUTPUT | |
else | |
echo "valid_release_message=True" >> $GITHUB_OUTPUT | |
fi | |
- name: Install commitizen | |
if: ${{ steps.check_head_commit_message.outputs.valid_release_message == 'True' }} | |
run: | | |
pip3 install commitizen | |
- name: Setup Github Actions git user | |
if: ${{ steps.check_head_commit_message.outputs.valid_release_message == 'True' }} | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "airflow-oss-bot" | |
- name: Tag and push tag for triggering release | |
if: ${{ steps.check_head_commit_message.outputs.valid_release_message == 'True' }} | |
run: | | |
git tag `cz version -p` | |
git push origin `cz version -p` |