Skip to content

Commit b148d39

Browse files
committed
fix: fix trigger children action
1 parent afe602f commit b148d39

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

.github/actions/trigger_child_update/action.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ runs:
1313
shell: bash
1414
run: |
1515
curl -X 'POST' \
16-
"https://gitea.psi.ch/api/v1/repos/bec/${{ inputs.REPO_NAME }}/actions/workflows/create_update_pr.yml/dispatches?token=${{ secrets.CI_DEPLOY_GITEA }}" \
17-
-H 'accept: application/json' \
18-
-H 'Content-Type: application/json' \
19-
\"ref\": \"refs/heads/main\"
16+
"https://gitea.psi.ch/api/v1/repos/bec/${{ inputs.REPO_NAME }}/actions/workflows/create_update_pr.yml/dispatches" \
17+
-H "Authorization: token ${{ secrets.CI_GITEA_WORKFLOW }}" \
18+
-H "Content-Type: application/json" \
19+
-d "{
20+
\"ref\": \"refs/heads/main\"
2021
}"

.github/workflows/update_all_children.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,8 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
repo_name: ["addams_bec",
11-
"csaxs_bec",
12-
"debye_bec",
13-
"microxas_bec",
14-
"phoenix_bec",
15-
"pxi_bec",
16-
"pxii_bec",
17-
"pxiii_bec",
18-
"sim_bec",
19-
"superxas_bec",
20-
"tomcat_bec",
21-
"xtreme_bec"]
10+
repo_name: ${{ fromJSON(vars.BEAMLINE_REPO_NAMES) }}
2211
steps:
23-
- name: Checkout repo
24-
uses: actions/checkout@v4
25-
2612
- uses: ./.github/actions/trigger_child_update
2713
with:
2814
REPO_NAME: ${{ matrix.repo_name }}

0 commit comments

Comments
 (0)