Skip to content

Commit

Permalink
does it work without checkout?
Browse files Browse the repository at this point in the history
  • Loading branch information
diracdeltas committed Apr 30, 2024
1 parent 1c4cde4 commit c705db0
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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})

0 comments on commit c705db0

Please sign in to comment.