Skip to content
This repository was archived by the owner on Apr 24, 2026. It is now read-only.

Commit 9103a5a

Browse files
authored
feat: run validation for PRs with main as a base (#489)
This PR updates workflows to be triggered for PRs with main branch as a base instead of data-models-staging. It also adds an additional job to validate artefacts if the PR is a release one.
1 parent 71756d2 commit 9103a5a

3 files changed

Lines changed: 19 additions & 4 deletions

File tree

.github/workflows/data-models-snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish data models snapshots
33
on:
44
push:
55
branches:
6-
- 'data-models-staging'
6+
- 'main'
77
paths:
88
- 'data-models/**'
99

.github/workflows/jargon-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ on:
55
types: [ 'jargon_onRelease' ]
66

77
jobs:
8-
jargon_snapshot:
8+
jargon_release:
99
uses: uncefact/.github/.github/workflows/untp-jargon-release.yml@main
1010
secrets: inherit

.github/workflows/validate-jargon-artefacts.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Validate Jargon Artefacts
33
on:
44
pull_request:
55
branches:
6-
- 'data-models-staging'
6+
- 'main'
77
paths:
88
- 'data-models/**'
99
workflow_dispatch:
@@ -15,13 +15,23 @@ jobs:
1515
steps:
1616

1717
- uses: actions/checkout@v4
18-
- name: Download client payload
18+
19+
- name: Download snapshot payload
20+
if: startsWith( github.head_ref, 'feature/jargon-sync-' )
1921
run: |
2022
branch_name="${{ github.head_ref }}"
2123
gh run download -n client-payload-${branch_name#*sync-}
2224
env:
2325
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2426

27+
- name: Download release payload
28+
if: startsWith( github.head_ref, 'feature/jargon-release-' )
29+
run: |
30+
branch_name="${{ github.head_ref }}"
31+
gh run download -n client-payload-${branch_name#*release-}
32+
env:
33+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
2535
- name: Read file and set env variable
2636
run: |
2737
echo "CLIENT_PAYLOAD<<EOF" >> $GITHUB_ENV
@@ -32,3 +42,8 @@ jobs:
3242
uses: ./.github/actions/validate-jargon-artefacts
3343
with:
3444
jargon-webhook-payload: ${{ env.CLIENT_PAYLOAD }}
45+
46+
validate-jargon-release-artefacts:
47+
if: startsWith( github.head_ref, 'feature/jargon-release-' )
48+
uses: uncefact/.github/.github/workflows/untp-validate-jargon-release.yml@main
49+
secrets: inherit

0 commit comments

Comments
 (0)