From da21c1a1699ffbfe61814a2e879d53fee6fb2529 Mon Sep 17 00:00:00 2001 From: veenm Date: Wed, 12 Mar 2025 08:54:40 +0000 Subject: [PATCH] Update .github/workflows/increase-version.yml --- .github/workflows/increase-version.yml | 34 ++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/increase-version.yml b/.github/workflows/increase-version.yml index e69de29..dc7e81a 100644 --- a/.github/workflows/increase-version.yml +++ b/.github/workflows/increase-version.yml @@ -0,0 +1,34 @@ +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"}'