Skip to content

Commit

Permalink
Merge pull request #75 from inbo/74-bug-fix-issues-with-trigger-build…
Browse files Browse the repository at this point in the history
…-pkgdown-site

fix #74
  • Loading branch information
SanderDevisscher authored Aug 23, 2024
2 parents da4be5e + 79812c9 commit 0a79ae4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/trigger_build_pkgdown_site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
workflows: ["Increment version"] # Ensure this matches the name in increment_version.yaml
types:
- completed
workflow_dispatch:

jobs:
trigger-build:
Expand All @@ -14,15 +15,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}`);
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: fistools
Title: Tools & data used for wildlife management & invasive species in Flanders
Version: 1.2.3
Version: 1.2.4
Authors@R: c(
person(given = "Sander", middle = "", family = "Devisscher", "[email protected]",
role = c("aut", "cre"), comment = c(ORCID = "0000-0003-2015-5731")),
Expand Down

0 comments on commit 0a79ae4

Please sign in to comment.