From f068b018562cddc1a4a66f65c3dfdd18defe6800 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Sat, 6 Jan 2024 17:27:31 +0100 Subject: [PATCH] Update workflow to track 'main' branch instead of 'v3.0.1' This commit updates the Github Actions CI/CD workflow to track changes from the main branch instead of branch v3.0.1. It changes actions in package.yml to fetch, verify commits, and grep in the 'main' branch. --- .github/workflows/packages.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 2482632b5..76ee14238 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -3,7 +3,7 @@ on: workflow_dispatch: push: branches: - - v3.0.1 + - main release: types: [ prereleased, published ] env: @@ -18,10 +18,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - - name: Verify commit exists in origin/v3.0.1 + - name: Verify commit exists in origin/main run: | git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* - git branch --remote --contains | grep origin/v3.0.1 + git branch --remote --contains | grep origin/main - name: Set VERSION variable run: | if [[ "${{ github.ref }}" == refs/tags/* && "${{ github.event_name }}" == "release" && "${{ github.event.action }}" == "published" ]]; then