Skip to content

Commit 5ffdbe6

Browse files
committed
test
1 parent 188768b commit 5ffdbe6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/cron_build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Check deploy and generate variables
4949
id: check
5050
env:
51-
GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5252
run: |
5353
source ./tools/check-deploy-needed.sh
5454
targets_list=$(echo "${{ inputs.targets }}" | sed 's/ *, */,/g' | sed 's/^/["/' | sed 's/$/"]/' | sed 's/,/","/g')

tools/config.sh

+1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ function github_pr_exists(){ # github_pr_exists <repo-path> <branch-name>
134134
function github_release_id(){ # github_release_id <repo-path> <release-tag>
135135
local repo_path="$1"
136136
local release_tag="$2"
137+
echo `curl -s -k -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github.v3.raw+json" "https://api.github.com/repos/$repo_path/releases"`
137138
local release=`curl -s -k -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github.v3.raw+json" "https://api.github.com/repos/$repo_path/releases" | jq -r '.[] | select(.tag_name == "$release_tag") | .id'`
138139
if [ ! "$release" == "" ] && [ ! "$release" == "null" ]; then echo "$release"; else echo ""; fi
139140
}

0 commit comments

Comments
 (0)