Skip to content

Commit 07957c2

Browse files
committed
fix: Added authentication on API so they won't fail again. Closes #3.
1 parent a73c598 commit 07957c2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/template.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ jobs:
4343
- name: Definition of build arguments
4444
run: |
4545
echo MANGOS_SHA1="$(curl -sSL https://api.github.com/repos/cmangos/mangos-${{ inputs.expansion }}/commits/master \
46+
-H 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
4647
-H "Accept: application/vnd.github.VERSION.sha")" >> "${GITHUB_ENV}" && \
4748
echo DATABASE_SHA1="$(curl -sSL https://api.github.com/repos/cmangos/${{ inputs.expansion }}-db/commits/master \
49+
-H 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
4850
-H "Accept: application/vnd.github.VERSION.sha")" >> "${GITHUB_ENV}" && \
4951
\
5052
echo TIMESTAMP="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> "${GITHUB_ENV}" && \
@@ -122,8 +124,10 @@ jobs:
122124
- name: Definition of build arguments
123125
run: |
124126
echo MANGOS_SHA1="$(curl -sSL https://api.github.com/repos/cmangos/mangos-${{ inputs.expansion }}/commits/master \
127+
-H 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
125128
-H "Accept: application/vnd.github.VERSION.sha")" >> "${GITHUB_ENV}" && \
126129
echo DATABASE_SHA1="$(curl -sSL https://api.github.com/repos/cmangos/${{ inputs.expansion }}-db/commits/master \
130+
-H 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
127131
-H "Accept: application/vnd.github.VERSION.sha")" >> "${GITHUB_ENV}" && \
128132
\
129133
echo TIMESTAMP="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> "${GITHUB_ENV}" && \

0 commit comments

Comments
 (0)