From c705db0a26b80b4a15e291e4eb30150e834bf285 Mon Sep 17 00:00:00 2001 From: yan Date: Tue, 30 Apr 2024 00:00:53 -0700 Subject: [PATCH] does it work without checkout? --- action.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/action.yml b/action.yml index afd28ab..b6b64c8 100644 --- a/action.yml +++ b/action.yml @@ -80,14 +80,13 @@ runs: run: cd ${{ github.action_path }}; npm ci shell: bash - id: llm-and-post-message - - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 - - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 - if: ${{ !contains(github.event.pull_request.labels.*.name, 'CI/skip-llm') && !contains(github.event.pull_request.labels.*.name, 'CI/skip') && github.event.pull_request.draft == false }} - env: - GITHUB_TOKEN: ${{ inputs.github_token }} - DEBUG: ${{ (inputs.debug == 'true' || runner.debug) && 'true' || 'false'}} - with: - script: | - const script = require('./action.js') - const inputs = ${{ toJson(inputs) }} - await script({github, context, inputs}) + uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 + if: ${{ !contains(github.event.pull_request.labels.*.name, 'CI/skip-llm') && !contains(github.event.pull_request.labels.*.name, 'CI/skip') && github.event.pull_request.draft == false }} + env: + GITHUB_TOKEN: ${{ inputs.github_token }} + DEBUG: ${{ (inputs.debug == 'true' || runner.debug) && 'true' || 'false'}} + with: + script: | + const script = require('./action.js') + const inputs = ${{ toJson(inputs) }} + await script({github, context, inputs})