diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index c3455eb..fb50a97 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -17,12 +17,8 @@ jobs: runs-on: ubuntu-latest permissions: pull-requests: write - if: github.event_name != 'issue_comment' || github.event.issue.pull_request steps: - - name: Checkout - id: checkout - uses: actions/checkout@v4 - + - uses: actions/checkout@v4 - name: Test Local Action id: test-action uses: ./ diff --git a/action.yml b/action.yml index fe32fc0..c880b7c 100644 --- a/action.yml +++ b/action.yml @@ -18,5 +18,18 @@ inputs: required: false runs: - using: node20 - main: dist/index.js + using: 'composite' + steps: + - uses: actions/checkout@v4 + if: github.event_name != 'issue_comment' || github.event.issue.pull_request + - uses: actions/setup-node@v3 + with: + node-version-file: '.node-version' + if: github.event_name != 'issue_comment' || github.event.issue.pull_request + - run: 'node ${GITHUB_ACTION_PATH}/dist/index.js' + shell: bash + env: + INPUT_GITHUB_TOKEN: ${{ inputs.github_token }} + INPUT_THRESHOLD: ${{ inputs.threshold }} + INPUT_DEBUG: ${{ inputs.debug }} + if: github.event_name != 'issue_comment' || github.event.issue.pull_request