Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use path relative to the action not the workflow #16

Merged
merged 4 commits into from
May 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Loading