Skip to content

Commit

Permalink
fix #74
Browse files Browse the repository at this point in the history
attempt 1
  • Loading branch information
SanderDevisscher committed Aug 23, 2024
1 parent da4be5e commit 9dd99d6
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/trigger_build_pkgdown_site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,11 @@ jobs:
uses: actions/github-script@v6
with:
script: |
const { exec } = require('child_process');
exec('gh workflow run "Build pkgdown site"', (error, stdout, stderr) => {
if (error) {
console.error(`Error: ${error.message}`);
return;
}
if (stderr) {
console.error(`Stderr: ${stderr}`);
return;
}
console.log(`Stdout: ${stdout}`);
const workflow_id = "Build pkgdown site"; // The name of the workflow to trigger
const response = await github.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id,
ref: context.ref, // The branch or tag to run the workflow on
});
console.log(`Triggered workflow: ${response.data.message}`);

0 comments on commit 9dd99d6

Please sign in to comment.