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

Update Build pkgdown site.yaml #73

Merged
Show file tree
Hide file tree
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
5 changes: 1 addition & 4 deletions .github/workflows/Build pkgdown site.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Build pkgdown site

on:
pull_request:
branches:
- main
workflow_dispatch:
workflow_dispatch: # Trigger manually

concurrency:
group: ${{ github.ref }}-${{ github.workflow }} # Use the branch reference as the concurrency group
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/trigger_build_pkgdown_site.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Trigger Build pkgdown Site

on:
workflow_run:
workflows: ["Increment version"] # Ensure this matches the name in increment_version.yaml
types:
- completed

jobs:
trigger-build:
runs-on: ubuntu-latest
steps:
- name: Trigger Build pkgdown site
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}`);
});
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.2
Version: 1.2.3
Authors@R: c(
person(given = "Sander", middle = "", family = "Devisscher", "[email protected]",
role = c("aut", "cre"), comment = c(ORCID = "0000-0003-2015-5731")),
Expand Down
Loading