Skip to content

chore: sync from release/6.3 #1427

chore: sync from release/6.3

chore: sync from release/6.3 #1427

name: Schedule run ci internal
on:
pull_request:
jobs:
check_permission:
name: Check permission
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }}
runs-on: ubuntu-latest
timeout-minutes: 60
outputs:
is_schedule_run_ci: ${{ steps.check-label-step.outputs.is_schedule_run_ci }}
steps:
- name: Check for Secret availability
id: check-label-step
# perform secret check & put boolean result as an output
shell: bash
run: |
APP_ID="${{ secrets.MY_APP_ID }}"
if [ ! -z "${APP_ID}" ]; then
echo "is_schedule_run_ci=1" >> $GITHUB_OUTPUT;
echo "secrets.MY_APP_ID is not empty, PR opened by the internal contributors"
else
echo "is_schedule_run_ci=-1" >> $GITHUB_OUTPUT;
echo "secrets.MY_APP_ID is empty, PR opened by the external contributors"
fi
schedule_ci:
name: Schedule run ci
needs: check_permission
# If the PR requested by a external contributor, the secrets.MY_APP_ID should be empty, and skip this workflow
if: ${{ needs.check_permission.outputs.is_schedule_run_ci == 1 }}
uses: ./.github/workflows/build.yml

Check failure on line 34 in .github/workflows/schedule-run-ci-internal.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/schedule-run-ci-internal.yml

Invalid workflow file

error parsing called workflow ".github/workflows/schedule-run-ci-internal.yml" -> "./.github/workflows/build.yml" : You have an error in your yaml syntax on line 220
secrets:
MY_APP_ID: ${{ secrets.MY_APP_ID }}