Skip to content

Commit e025418

Browse files
authored
Merge pull request #71 from wso2-extensions/sync-pr-69-to-next
[Sync][main -> next][#69]: Add workflows for PR merge and syncing to next branch at main
2 parents e121bad + d07ee09 commit e025418

3 files changed

Lines changed: 399 additions & 1 deletion

File tree

.github/workflows/check-templates-versions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: 🚧 Templates Version Check
44

55
on:
66
pull_request:
7-
branches: [ main ]
7+
branches: [ main, next ]
88

99
concurrency:
1010
group: pr-builder-${{ github.ref }}

.github/workflows/on-pr-merge.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This workflow will run when a PR is merged and save the PR information for later use.
2+
3+
name: 💡 PR Merged
4+
5+
on:
6+
pull_request:
7+
types: [closed]
8+
branches: [master, main]
9+
10+
jobs:
11+
save-pr-information:
12+
runs-on: ubuntu-latest
13+
if: github.event.pull_request.merged == true
14+
steps:
15+
- name: ⬇️ Checkout
16+
uses: actions/checkout@v3
17+
18+
- name: ℹ️ Display PR Information
19+
run: echo "PR Number \#${{github.event.number}}"
20+
21+
- name: 💾 Save PR Number for Later Use
22+
run: echo "${{github.event.number}}" > PR_NUMBER
23+
24+
- name: 📦 Upload PR Number as Artifact
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: pr-number
28+
path: PR_NUMBER

0 commit comments

Comments
 (0)