Skip to content

Commit b6769ae

Browse files
[DEVOPS-393] Manually trigger build after export-config (#40)
1 parent 08227cc commit b6769ae

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/export_config.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,14 @@ jobs:
3838
- name: Run export script
3939
run: |
4040
cd /app
41-
/app/.circleci/export-config.sh
41+
/app/.circleci/export-config.sh
42+
- name: Get the release branch
43+
run: |
44+
CURRENT_GIT_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
45+
echo RELEASE_GIT_BRANCH="${CURRENT_GIT_BRANCH//automation/release}" >> $GITHUB_ENV
46+
- name: Manually run build workflow
47+
uses: benc-uk/workflow-dispatch@v1
48+
with:
49+
workflow: build
50+
repo: ${{ github.repository }}
51+
ref: ${{ env.RELEASE_GIT_BRANCH }}

.github/workflows/set_status.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
- name: Set commit status in the GitHub API
3737
run: |
3838
curl -X POST \
39-
-H "Authorization: token ${{ secrets.SDPDEPLOY_PAT }}" \
39+
-vvv \
40+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
4041
-H "Accept: application/vnd.github.v3+json" \
4142
https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} \
4243
-d "{

0 commit comments

Comments
 (0)