Skip to content

Commit d389bce

Browse files
committed
try adding branch to setup for pushing
1 parent d1097d8 commit d389bce

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/chapters-merge.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: "Merge chapters and meetup"
33
on:
44
workflow_dispatch:
55
push:
6+
branches:
7+
- "push-action/**"
68
paths:
79
- "data/chapters/"
810
schedule:
@@ -63,5 +65,6 @@ jobs:
6365
- name: Pushing to the protected branch 'main'
6466
uses: CasperWA/push-protected@v2
6567
with:
66-
token: ${{ secrets.push-to-protected }}
68+
token: ${{ secrets.GLOBAL_GHA_PAT }}
6769
branch: main
70+
unprotect_reviews: true

.github/workflows/global-team.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Get Global Team from Airtable
22

33
on:
4+
push:
5+
branches:
6+
- "push-action/**"
47
schedule:
58
- cron: "16 16 * * 0"
69
workflow_dispatch:
@@ -46,7 +49,7 @@ jobs:
4649
git config --global user.name "github-actions[bot]"
4750
git config --global user.email "github-actions[bot]@users.noreply.github.com"
4851
49-
- name: Commit and Push Changes
52+
- name: Commit Changes
5053
env:
5154
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5255
run: |
@@ -55,8 +58,8 @@ jobs:
5558
git commit -m "Automated update: Update Global Team" || echo "No new data to commit"
5659
5760
- name: Pushing to the protected branch 'main'
58-
if: github.ref_name == 'main'
5961
uses: CasperWA/push-protected@v2
6062
with:
61-
token: ${{ secrets.push-to-protected }}
63+
token: ${{ secrets.GLOBAL_GHA_PAT }}
6264
branch: main
65+
unprotect_reviews: true

0 commit comments

Comments
 (0)