diff --git a/.github/workflows/check_tflite_files.yml b/.github/workflows/check_tflite_files.yml index 785dfa93..371f3521 100644 --- a/.github/workflows/check_tflite_files.yml +++ b/.github/workflows/check_tflite_files.yml @@ -14,7 +14,7 @@ on: type: string secrets: tflm-bot-token: - required: true + required: false jobs: check_tflite_files: @@ -30,5 +30,5 @@ jobs: env: GITHUB_REPOSITORY: ${{ github.repository }} PR_NUMBER: ${{ inputs.pr-number }} - TFLM_BOT_TOKEN: ${{ secrets.tflm-bot-token }} + TFLM_BOT_TOKEN: ${{ secrets.tflm-bot-token || github.token }} run: tensorflow/lite/micro/tools/ci_build/check_tflite_files.sh diff --git a/.github/workflows/pr_test.yml b/.github/workflows/pr_test.yml index 83ed45fd..259a6b14 100644 --- a/.github/workflows/pr_test.yml +++ b/.github/workflows/pr_test.yml @@ -69,15 +69,11 @@ jobs: core.setOutput('scope', scope); call-check-tflite-files: - needs: gatekeeper - if: needs.gatekeeper.outputs.scope != 'none' uses: ./.github/workflows/check_tflite_files.yml with: trigger-sha: ${{ github.event.pull_request.head.sha }} pr-number: ${{ github.event.pull_request.number }} pr-body: ${{ github.event.pull_request.body }} - secrets: - tflm-bot-token: ${{ secrets.TFLM_BOT_PACKAGE_READ_TOKEN }} call-core: needs: gatekeeper