Update dependency mkdocs-material to v9.5.13 (main) #524
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: Version Bump merged | |
on: | |
pull_request: | |
types: | |
- "closed" | |
branches: | |
- "main" | |
jobs: | |
trigger-release: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.merged && | |
startsWith(github.head_ref, 'bump_version_to_') && | |
startsWith(github.event.pull_request.title, 'Bump version') && | |
contains(github.event.pull_request.title, ' → ') | |
environment: Create Release | |
steps: | |
- name: Get new version | |
id: get-new-version | |
run: | | |
NEW_VERSION=$(echo ${{ github.head_ref }} | cut -d _ -f4 ) | |
echo "::set-output name=version::$NEW_VERSION" | |
- name: Is prerelease? | |
id: is-prerelease | |
run: | | |
IS_PRERELEASE=$([[ "${{ steps.get-new-version.outputs.version }}" == *-[a-z]* ]] && echo true || echo false) | |
echo "::set-output name=result::$IS_PRERELEASE" | |
- name: Create Release | |
# Using full SHA for security | |
# https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions | |
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0 | |
with: | |
token: ${{ secrets.ACCESS_TOKEN }} | |
tag: v${{ steps.get-new-version.outputs.version }} | |
name: v${{ steps.get-new-version.outputs.version }} Release | |
commit: main | |
prerelease: ${{ steps.is-prerelease.outputs.result }} |