Skip to content

Commit 23db1d8

Browse files
committed
chnaged secret name of github token
1 parent e4e2446 commit 23db1d8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/update-and-publish.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,23 @@ jobs:
5353
then
5454
echo "Branch validation Successful"
5555
else
56-
echo "Releases only taken from main branch:"
56+
echo "Releases only taken from main branch"
5757
exit 1
5858
fi
5959
6060
tag="${{ steps.previous_tag.outputs.tag }}"
61-
read type tag_sha < <(
62-
echo $(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/git/ref/tags/$tag" | jq -r '.object.type,.object.sha')
63-
)
61+
read type tag_sha < <(echo $(curl -s -H "Authorization: Bearer ${{ secrets.PAT_FOR_TESTING_DEPLOYMENT_REPO }}" "https://api.github.com/repos/${{ github.repository }}/git/ref/tags/$tag" | jq -r '.object.type,.object.sha'))
6462
6563
if [ "$type" == "commit" ]
6664
then
6765
echo "commit sha: $tag_sha"
6866
else
6967
echo "Not a commit"
70-
sha=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/git/tags/$tag_sha" | jq '.object.sha')
68+
sha=$(curl -s -H "Authorization: Bearer ${{ secrets.PAT_FOR_TESTING_DEPLOYMENT_REPO }}" "https://api.github.com/repos/${{ github.repository }}/git/tags/$tag_sha" | jq '.object.sha')
7169
fi
7270
7371
PreviousSha="${{ github.sha }}"
72+
echo "tag-sha $tag_sha"
7473
if [ "$tag_sha" == "$PreviousSha" ]
7574
then
7675
echo "Nothing changed from last release"
@@ -96,7 +95,7 @@ jobs:
9695
# - name: Bump package version and publish package
9796
# uses: anothrNick/[email protected]
9897
# with:
99-
# github_token: ${{ secrets.GITHUB_TOKEN }}
98+
# github_token: ${{ secrets.PAT_FOR_TESTING_DEPLOYMENT_REPO }}
10099
# tag: true
101100
# push_tag: true
102101
# tag_prefix: "v"

0 commit comments

Comments
 (0)