Skip to content

Commit

Permalink
fix: use path relative to the action not the workflow (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
kilianc authored May 12, 2024
1 parent 3e2076b commit 674031f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ inputs:
description: The token to use for pushing to the repository.
default: ${{ github.token }}
runs:
using: "composite"
using: composite
steps:
- name: Checkout Coverage Branch
uses: actions/checkout@v4
Expand All @@ -37,7 +37,7 @@ runs:
rm .git/index
git clean -fdx
touch index.html
cp ../nord.css .
cp ${GITHUB_ACTION_PATH}/assets/nord.css .
git add index.html nord.css
git config user.email "go-coverage-action@github.com"
git config user.name "go-coverage-action"
Expand All @@ -64,6 +64,6 @@ runs:
with:
github-token: ${{ inputs.token }}
script: |
const script = require('${{ github.workspace }}/src/update-comment.js')
const script = require(`${process.env.GITHUB_ACTION_PATH}/src/update-comment.js`)
const revision = '${{ github.event.pull_request.head.sha || github.sha }}'
await script({ context, github }, revision)

0 comments on commit 674031f

Please sign in to comment.