Files
paypoint-frontend/.github/workflows/increase-version.yml
veenm da21c1a169
Some checks failed
Docker Image CI / bump-version (push) Successful in 15s
Docker Image CI / build-and-push (push) Has been cancelled
Docker Image CI / deploy (push) Has been cancelled
Increase Version / bump-version (push) Failing after 15s
Update .github/workflows/increase-version.yml
2025-03-12 08:54:40 +00:00

35 lines
1.0 KiB
YAML

name: Increase Version
on:
push:
branches:
- main # Start bij commits op de main branch
jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config --global user.name "Gitea Actions"
git config --global user.email "actions@gitea.local"
- name: Bump version
run: |
npm version patch --no-git-tag-version
git add package.json package-lock.json
git commit -m "chore: bump version [skip ci]" || echo "No changes to commit"
git push origin main
- name: Trigger second pipeline
run: |
curl -X POST "https://git.melvanveen.nl/api/v1/repos/veenm/paypoint/actions/workflows/build-and-deploy.yml/dispatches" \
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
-H "Content-Type: application/json" \
-d '{"ref":"main"}'