Trigger release #28
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 | |
on: | |
workflow_dispatch: | |
inputs: {} | |
jobs: | |
increase_version: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
timeout-minutes: 1 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: main | |
- name: Increase version | |
run: .github/workflows/scripts/increase_version.sh | |
- name: Set Git config up | |
run: | | |
git config --global user.name "Lumigo Bot" | |
git config --global user.email "[email protected]" | |
- name: Create VERSION commit | |
run: | | |
git add 'VERSION' | |
git commit -m "Release version v$(< VERSION)" | |
- name: Push VERSION commit | |
uses: CasperWA/push-protected@v2 | |
with: | |
token: ${{ secrets.TRIGGER_RELEASE_TOKEN }} | |
branch: main |