Skip to content

Commit f95e111

Browse files
authored
fix(ci): use split token instead of github token (#8453)
1 parent 6bf570c commit f95e111

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release-checks.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ jobs:
101101
- uses: actions/checkout@v4
102102
with:
103103
fetch-depth: 0
104-
- name: "Check for unexpected major version"
104+
- name: "Verify the subrepos exist for new components"
105105
run: |
106106
COMPONENTS=$(git diff origin/main --name-only | grep VERSION | xargs dirname)
107107
FAIL=""
108108
for COMPONENT in ${COMPONENTS}; do {
109109
if [[ "$(cat $COMPONENT/VERSION)" == "0.1.0" ]]; then
110110
SUBREPO=$(cat $COMPONENT/composer.json | jq -r '.extra.component.target')
111111
echo "New component found: $COMPONENT"
112-
if curl --head --silent --fail "https://api.github.com/repos/$SUBREPO" -H 'Authorization: Bearer ${{secrets.GITHUB_TOKEN}}' > /dev/null; then
112+
if curl --head --silent --fail "https://api.github.com/repos/$SUBREPO" -H 'Authorization: Bearer ${{secrets.SPLIT_TOKEN}}' > /dev/null; then
113113
echo " - Target Repo '$SUBREPO' exists"
114114
else
115115
echo " - Target Repo '$SUBREPO' DOES NOT EXIST"

0 commit comments

Comments
 (0)