ci: trigger 2.3.x pull request builds

This commit is contained in:
Kevin Yue committed 2026-04-18 21:26:49 +08:00
1 parent 51c55376e8
commit e18d6d3ed0
1 file changed
+19 -4
+19 -4
View File
@@ -7,6 +7,7 @@ on:
- .vscode - .vscode
- .devcontainer - .devcontainer
branches: branches:
- 2.3.x
- main - main
- dev - dev
- hotfix/* - hotfix/*
@@ -14,11 +15,23 @@ on:
- release/* - release/*
tags: tags:
- v*.*.* - v*.*.*
pull_request:
paths-ignore:
- LICENSE
- "*.md"
- .vscode
- .devcontainer
branches:
- 2.3.x
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
env:
GP_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
GPGUI_REF: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref_name }}
jobs: jobs:
# Include arm64 if ref is a tag # Include arm64 if ref is a tag
setup-matrix: setup-matrix:
@@ -49,8 +62,9 @@ jobs:
with: with:
token: ${{ secrets.GH_PAT }} token: ${{ secrets.GH_PAT }}
repository: yuezk/GlobalProtect-openconnect repository: yuezk/GlobalProtect-openconnect
ref: ${{ github.ref }} ref: ${{ env.GP_REF }}
path: source/gp path: source/gp
submodules: recursive
- name: Create tarball - name: Create tarball
run: | run: |
cd source/gp cd source/gp
@@ -170,14 +184,15 @@ jobs:
with: with:
token: ${{ secrets.GH_PAT }} token: ${{ secrets.GH_PAT }}
repository: yuezk/GlobalProtect-openconnect repository: yuezk/GlobalProtect-openconnect
ref: ${{ github.ref }} ref: ${{ env.GP_REF }}
path: gpgui-source/gp path: gpgui-source/gp
- name: Checkout gpgui@${{ github.ref_name }} submodules: recursive
- name: Checkout gpgui@${{ env.GPGUI_REF }}
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
token: ${{ secrets.GH_PAT }} token: ${{ secrets.GH_PAT }}
repository: yuezk/gpgui repository: yuezk/gpgui
ref: ${{ github.ref_name }} ref: ${{ env.GPGUI_REF }}
path: gpgui-source/gpgui path: gpgui-source/gpgui
- name: Tarball - name: Tarball
run: | run: |