diff --git a/.github/workflows/Build pkgdown site.yaml b/.github/workflows/Build pkgdown site.yaml index b18dd99..4638da6 100644 --- a/.github/workflows/Build pkgdown site.yaml +++ b/.github/workflows/Build pkgdown site.yaml @@ -2,6 +2,10 @@ name: Build pkgdown site on: workflow_dispatch: # Trigger manually + workflow_run: + workflows: ["Trigger Build pkgdown Site"] + types: + - completed concurrency: group: ${{ github.ref }}-${{ github.workflow }} # Use the branch reference as the concurrency group @@ -75,9 +79,10 @@ jobs: git add -A if ! git diff --cached --quiet; then git commit -m 'Build pkgdown site [skip ci]' - git pull --rebase origin ${{ github.head_ref }} - git push origin HEAD:${{ github.head_ref }} + # Extract the branch name from the full reference + BRANCH_NAME=${GITHUB_REF##*/} + git pull --rebase origin "$BRANCH_NAME" + git push origin HEAD:"$BRANCH_NAME" else echo "No changes to commit." fi - diff --git a/.github/workflows/trigger_build_pkgdown_site.yaml b/.github/workflows/trigger_build_pkgdown_site.yaml index e9d35ca..47f20eb 100644 --- a/.github/workflows/trigger_build_pkgdown_site.yaml +++ b/.github/workflows/trigger_build_pkgdown_site.yaml @@ -11,15 +11,21 @@ jobs: trigger-build: runs-on: ubuntu-latest steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install GitHub CLI + run: | + sudo apt update + sudo apt install -y gh + + - name: Configure GitHub CLI + run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token + - name: Trigger Build pkgdown site - uses: actions/github-script@v6 - with: - script: | - 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}`); + run: | + # Extract the branch name from the full reference + BRANCH_NAME=${GITHUB_REF##*/} + gh workflow run "Build pkgdown site" --ref "$BRANCH_NAME" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/DESCRIPTION b/DESCRIPTION index 4faabaf..7f8a33c 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: fistools Title: Tools & data used for wildlife management & invasive species in Flanders -Version: 1.2.4 +Version: 1.2.5 Authors@R: c( person(given = "Sander", middle = "", family = "Devisscher", "sander.devisscher@inbo.be", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-2015-5731")), diff --git a/docs/404.html b/docs/404.html index b863e77..3db0651 100644 --- a/docs/404.html +++ b/docs/404.html @@ -32,7 +32,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/CODE_OF_CONDUCT.html b/docs/CODE_OF_CONDUCT.html index e737a58..33d003f 100644 --- a/docs/CODE_OF_CONDUCT.html +++ b/docs/CODE_OF_CONDUCT.html @@ -17,7 +17,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index f077a1c..91f3f13 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -17,7 +17,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/LICENSE.html b/docs/LICENSE.html index a811a5c..aa64b4b 100644 --- a/docs/LICENSE.html +++ b/docs/LICENSE.html @@ -17,7 +17,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/authors.html b/docs/authors.html index ee2bec0..963992e 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -17,7 +17,7 @@ fistools - 1.2.2 + 1.2.5 @@ -70,13 +70,13 @@

Citation

Devisscher S, Pallemaerts L, Delva S, Cartuyvels E, Bollen M (2024). fistools: Tools & data used for wildlife management & invasive species in Flanders. -R package version 1.2.2. +R package version 1.2.5.

@Manual{,
   title = {fistools: Tools & data used for wildlife management & invasive species in Flanders},
   author = {Sander Devisscher and Lynn Pallemaerts and Soria Delva and Emma Cartuyvels and Martijn Bollen},
   year = {2024},
-  note = {R package version 1.2.2},
+  note = {R package version 1.2.5},
 }
diff --git a/docs/index.html b/docs/index.html index 638f98f..93d3b2e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -33,7 +33,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 25c6a7f..acfb3c9 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -2,4 +2,4 @@ pandoc: 2.9.2.1 pkgdown: 2.1.0 pkgdown_sha: ~ articles: {} -last_built: 2024-08-23T09:45Z +last_built: 2024-08-23T17:11Z diff --git a/docs/reference/CRS_extracter.html b/docs/reference/CRS_extracter.html index 49274fe..31d0aa1 100644 --- a/docs/reference/CRS_extracter.html +++ b/docs/reference/CRS_extracter.html @@ -19,7 +19,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/reference/UUID_List.html b/docs/reference/UUID_List.html index d884883..9ffe204 100644 --- a/docs/reference/UUID_List.html +++ b/docs/reference/UUID_List.html @@ -17,7 +17,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/reference/apply_grtsdb.html b/docs/reference/apply_grtsdb.html index 5e77cc0..2ae8618 100644 --- a/docs/reference/apply_grtsdb.html +++ b/docs/reference/apply_grtsdb.html @@ -18,7 +18,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/reference/boswachterijen.html b/docs/reference/boswachterijen.html index 04c3710..231da72 100644 --- a/docs/reference/boswachterijen.html +++ b/docs/reference/boswachterijen.html @@ -18,7 +18,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/reference/calculate_polygon_centroid.html b/docs/reference/calculate_polygon_centroid.html index 3e554c1..a1f4d79 100644 --- a/docs/reference/calculate_polygon_centroid.html +++ b/docs/reference/calculate_polygon_centroid.html @@ -17,7 +17,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/reference/check.html b/docs/reference/check.html index 4f70614..bf8a4be 100644 --- a/docs/reference/check.html +++ b/docs/reference/check.html @@ -17,7 +17,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/reference/cleanup_sqlite.html b/docs/reference/cleanup_sqlite.html index f060ab1..f4d01b7 100644 --- a/docs/reference/cleanup_sqlite.html +++ b/docs/reference/cleanup_sqlite.html @@ -17,7 +17,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/reference/col_content_compare.html b/docs/reference/col_content_compare.html index 4ff85a1..4471a24 100644 --- a/docs/reference/col_content_compare.html +++ b/docs/reference/col_content_compare.html @@ -19,7 +19,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/reference/colcompare.html b/docs/reference/colcompare.html index 98445ba..5feff23 100644 --- a/docs/reference/colcompare.html +++ b/docs/reference/colcompare.html @@ -17,7 +17,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/reference/collect_osm_features.html b/docs/reference/collect_osm_features.html index c8c093b..3b3c10d 100644 --- a/docs/reference/collect_osm_features.html +++ b/docs/reference/collect_osm_features.html @@ -23,7 +23,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/reference/download_dep_media.html b/docs/reference/download_dep_media.html index e2b6d15..2a844cd 100644 --- a/docs/reference/download_dep_media.html +++ b/docs/reference/download_dep_media.html @@ -18,7 +18,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/reference/download_gdrive_if_missing.html b/docs/reference/download_gdrive_if_missing.html index ddd8988..c67bc0a 100644 --- a/docs/reference/download_gdrive_if_missing.html +++ b/docs/reference/download_gdrive_if_missing.html @@ -19,7 +19,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/reference/download_seq_media.html b/docs/reference/download_seq_media.html index 475bbd3..686002c 100644 --- a/docs/reference/download_seq_media.html +++ b/docs/reference/download_seq_media.html @@ -18,7 +18,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/reference/drg_example.html b/docs/reference/drg_example.html index 9aac614..9d1d7a1 100644 --- a/docs/reference/drg_example.html +++ b/docs/reference/drg_example.html @@ -17,7 +17,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/reference/index.html b/docs/reference/index.html index b78c0df..68422f2 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -17,7 +17,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/reference/install_sp.html b/docs/reference/install_sp.html index 9a559ed..14ba7d3 100644 --- a/docs/reference/install_sp.html +++ b/docs/reference/install_sp.html @@ -17,7 +17,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/reference/label_converter.html b/docs/reference/label_converter.html index 1cd96c3..09ffec8 100644 --- a/docs/reference/label_converter.html +++ b/docs/reference/label_converter.html @@ -17,7 +17,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/reference/label_selecter.html b/docs/reference/label_selecter.html index 58233a5..15ea828 100644 --- a/docs/reference/label_selecter.html +++ b/docs/reference/label_selecter.html @@ -17,7 +17,7 @@ fistools - 1.2.2 + 1.2.5 diff --git a/docs/reference/lib_crs.html b/docs/reference/lib_crs.html index fa65c02..391197d 100644 --- a/docs/reference/lib_crs.html +++ b/docs/reference/lib_crs.html @@ -17,7 +17,7 @@ fistools - 1.2.2 + 1.2.5