Skip to content

Trigger release

Trigger release #28

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