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

Commit 003adc2

Browse files
Changes/workflows (#16)
* 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> * fix: changed public repo parameter Signed-off-by: Adroaldo Neto <adroaldo.neto@zup.com.br> * fix: add new parameter within the release workflows Signed-off-by: Adroaldo Neto <adroaldo.neto@zup.com.br> Signed-off-by: Adroaldo Neto <adroaldo.neto@zup.com.br>
1 parent f1a5a49 commit 003adc2

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ jobs:
2727
steps:
2828
- name: Dispatch init event
2929
run: |
30-
REPO_NAME=${{ secrets.INTERNAL_REPO_NAME }}
31-
STATUSES_HREF=https://api.github.com/repos/$REPO_NAME/statuses/${{ github.event.head_commit.id }}
32-
curl -X POST https://api.github.com/repos/$REPO_NAME/dispatches \
30+
INTERNAL_REPO_NAME=${{ secrets.INTERNAL_REPO_NAME }}
31+
PUBLIC_REPO_NAME=${{ secrets.PUBLIC_REPO_NAME }}
32+
STATUSES_HREF=https://api.github.com/repos/$PUBLIC_REPO_NAME/statuses/${{ github.event.head_commit.id }}
33+
curl -X POST https://api.github.com/repos/$INTERNAL_REPO_NAME/dispatches \
3334
-H 'Accept: application/vnd.github.everest-preview+json' \
3435
-u ${{ secrets.ACCESS_TOKEN }} \
3536
-o response.json \

.github/workflows/deploy-prod.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ jobs:
2727
steps:
2828
- name: Dispatch init event
2929
run: |
30-
REPO_NAME=${{ secrets.INTERNAL_REPO_NAME }}
31-
STATUSES_HREF=https://api.github.com/repos/$REPO_NAME/statuses/${{ github.event.head_commit.id }}
32-
curl -X POST https://api.github.com/repos/$REPO_NAME/dispatches \
30+
INTERNAL_REPO_NAME=${{ secrets.INTERNAL_REPO_NAME }}
31+
PUBLIC_REPO_NAME=${{ secrets.PUBLIC_REPO_NAME }}
32+
STATUSES_HREF=https://api.github.com/repos/$PUBLIC_REPO_NAME/statuses/${{ github.event.head_commit.id }}
33+
curl -X POST https://api.github.com/repos/$INTERNAL_REPO_NAME/dispatches \
3334
-H 'Accept: application/vnd.github.everest-preview+json' \
3435
-u ${{ secrets.ACCESS_TOKEN }} \
3536
-o response.json \

0 commit comments

Comments
 (0)