From 26f94b13a3c6a2e98269fc96ea8ebf5dc4555754 Mon Sep 17 00:00:00 2001 From: Stephan Date: Fri, 10 Dec 2021 19:32:14 +0100 Subject: [PATCH] wtf --- .github/workflows/publish-release.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 1aeb2e9..fff8aa4 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -8,7 +8,16 @@ jobs: - name: Validate the release uses: actions/github-script@v4 with: - github-token: ${{secrets.GITHUB_TOKEN}} # needed to see draft releases + + # fuck! not seeing the draft release + # curl -i -u zpqrtbnk https://api.github.com/users/zpqrtbnk + # with my test-repo-curl token + # raises the x-ratelimit-limit to 5000/hr ok + # and, I can see the draft release + # so, I need a special token? + + #github-token: ${{ secrets.GITHUB_TOKEN }} # needed to see draft releases + github-token: ${{ secrets.MY_GITHUB_TOKEN_TESTREPO }} script: | const ver = "${{ github.ref }}".substring(19) const tag = "v" + ver