Skip to content

Commit 0c00501

Browse files
authored
Merge pull request #3 from externpro/externpro-update-25.07.6-88-gb05bee7-21916015546-1
externpro 25.07.6-88-gb05bee7
2 parents f7d377f + 5e29213 commit 0c00501

5 files changed

Lines changed: 52 additions & 9 deletions

File tree

.github/release-tag.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
tag: xpv1.13.3
2+
message: "xpro version 1.13.3 tag"

.github/workflows/xpbuild.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
name: Build
1+
name: xpBuild
22
permissions:
33
contents: read
44
pull-requests: write
55
on:
66
push:
7-
branches: [ "dev" ]
7+
tags: ["xpv*"]
88
pull_request:
9-
branches: [ "dev" ]
9+
branches: ["xpro"]
1010
workflow_dispatch:
1111
jobs:
1212
linux:
1313
permissions:
1414
contents: read
1515
pull-requests: write
1616
packages: write
17-
uses: externpro/externpro/.github/workflows/build-linux.yml@25.07.3
17+
uses: externpro/externpro/.github/workflows/build-linux.yml@25.07.6
1818
with:
1919
cmake-workflow-preset: LinuxRelease
2020
secrets: inherit
2121
macos:
22-
uses: externpro/externpro/.github/workflows/build-macos.yml@25.07.3
22+
uses: externpro/externpro/.github/workflows/build-macos.yml@25.07.6
2323
with:
2424
cmake-workflow-preset: DarwinRelease
2525
secrets: inherit
2626
windows:
27-
uses: externpro/externpro/.github/workflows/build-windows.yml@25.07.3
27+
uses: externpro/externpro/.github/workflows/build-windows.yml@25.07.6
2828
with:
2929
cmake-workflow-preset: WindowsRelease
3030
secrets: inherit

.github/workflows/xprelease.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,40 @@
1-
name: Release
1+
name: xpRelease
22
on:
33
workflow_dispatch:
44
inputs:
55
workflow_run_url:
66
description: 'URL of the workflow run containing artifacts to upload (e.g., https://github.com/owner/repo/actions/runs/123456789)'
77
required: true
88
type: string
9+
workflow_run:
10+
workflows: ["xpBuild"]
11+
types: [completed]
912
jobs:
13+
dispatch-at-tag:
14+
if: >-
15+
github.event_name == 'workflow_run' &&
16+
github.event.workflow_run.conclusion == 'success' &&
17+
startsWith(github.event.workflow_run.head_branch, 'xpv')
18+
runs-on: ubuntu-latest
19+
permissions:
20+
actions: write
21+
steps:
22+
-
23+
name: Dispatch xpRelease at tag
24+
shell: bash
25+
env:
26+
GH_TOKEN: ${{ github.token }}
27+
RUN_URL: ${{ github.event.workflow_run.html_url }}
28+
TAG_REF: ${{ github.event.workflow_run.head_branch }}
29+
run: |
30+
set -euo pipefail
31+
gh api -X POST "repos/${{ github.repository }}/actions/workflows/xprelease.yml/dispatches" \
32+
-f ref="$TAG_REF" \
33+
-f inputs[workflow_run_url]="$RUN_URL"
1034
# Upload build artifacts as release assets
1135
release-from-build:
12-
uses: externpro/externpro/.github/workflows/release-from-build.yml@25.07.3
36+
if: github.event_name == 'workflow_dispatch'
37+
uses: externpro/externpro/.github/workflows/release-from-build.yml@25.07.6
1338
with:
1439
workflow_run_url: ${{ github.event.inputs.workflow_run_url }}
1540
permissions:

.github/workflows/xptag.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: xpTag
2+
permissions:
3+
contents: write
4+
issues: write
5+
on:
6+
pull_request:
7+
types: [closed]
8+
jobs:
9+
tag:
10+
if: ${{ github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'xpro' && contains(github.event.pull_request.labels.*.name, 'release:tag') }}
11+
uses: externpro/externpro/.github/workflows/tag-release.yml@25.07.6
12+
with:
13+
merge_sha: ${{ github.event.pull_request.merge_commit_sha }}
14+
pr_number: ${{ github.event.pull_request.number }}
15+
secrets:
16+
workflow_write_token: ${{ secrets.XPUPDATE_TOKEN }}

0 commit comments

Comments
 (0)