Skip to content

Commit

Permalink
First commit for RTM 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
littleGnAl committed Aug 9, 2024
1 parent d2b62f6 commit 4b6bba1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/schedule-run-ci-internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ jobs:
# perform secret check & put boolean result as an output
shell: bash
run: |
APP_ID="${{ secrets.MY_APP_ID }}"
APP_ID="${{ secrets.APP_ID_RTM }}"
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"
echo "secrets.APP_ID_RTM 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"
echo "secrets.APP_ID_RTM 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 the PR requested by a external contributor, the secrets.APP_ID_RTM should be empty, and skip this workflow
if: ${{ needs.check_permission.outputs.is_schedule_run_ci == 1 }}
uses: ./.github/workflows/build.yml
secrets:
MY_APP_ID: ${{ secrets.MY_APP_ID }}
APP_ID_RTM: ${{ secrets.APP_ID_RTM }}

0 comments on commit 4b6bba1

Please sign in to comment.