Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

Commit f1a5a49

Browse files
Changes/workflows (#15)
* added new line Signed-off-by: Adroaldo Neto <adroaldo.neto@zup.com.br> * fix: changed href value inside release workflows Signed-off-by: Adroaldo Neto <adroaldo.neto@zup.com.br> Signed-off-by: Adroaldo Neto <adroaldo.neto@zup.com.br>
1 parent 811e034 commit f1a5a49

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/deploy-pre-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
- name: Dispatch init event
2929
run: |
3030
REPO_NAME=${{ secrets.INTERNAL_REPO_NAME }}
31+
STATUSES_HREF=https://api.github.com/repos/$REPO_NAME/statuses/${{ github.event.head_commit.id }}
3132
curl -X POST https://api.github.com/repos/$REPO_NAME/dispatches \
3233
-H 'Accept: application/vnd.github.everest-preview+json' \
3334
-u ${{ secrets.ACCESS_TOKEN }} \
@@ -37,6 +38,6 @@ jobs:
3738
"event_type": "RELEASE",
3839
"client_payload": {
3940
"ref": "${{ github.ref }}",
40-
"statuses_href": "https://api.github.com/repos/$REPO_NAME/statuses/${{ github.event.head_commit.id }}"
41+
"statuses_href": "'"$STATUSES_HREF"'"
4142
}
4243
}'

.github/workflows/deploy-prod.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
- name: Dispatch init event
2929
run: |
3030
REPO_NAME=${{ secrets.INTERNAL_REPO_NAME }}
31+
STATUSES_HREF=https://api.github.com/repos/$REPO_NAME/statuses/${{ github.event.head_commit.id }}
3132
curl -X POST https://api.github.com/repos/$REPO_NAME/dispatches \
3233
-H 'Accept: application/vnd.github.everest-preview+json' \
3334
-u ${{ secrets.ACCESS_TOKEN }} \
@@ -37,6 +38,6 @@ jobs:
3738
"event_type": "TAG",
3839
"client_payload": {
3940
"ref": "${{ github.ref }}",
40-
"statuses_href": "https://api.github.com/repos/$REPO_NAME/statuses/${{ github.event.head_commit.id }}"
41+
"statuses_href": "'"$STATUSES_HREF"'"
4142
}
4243
}'

0 commit comments

Comments
 (0)