Skip to content
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
30 changes: 30 additions & 0 deletions .github/workflows/check_links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# =========== IMPORTANT!! READ THIS!! ============ #
# This file is used to check links and can be copied to be used in other websites.

# When you copy this file, make sure to check and modify the fields
# that here are marked with `MODIFY`.
# ============================================== #

name: Check links

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:

jobs:
check-links:
uses: access-nri/access-hive-docs/.github/workflows/check_links_workflow.yml@main
with:
repo: '${{ github.repository }}'
ref_name: "${{ github.event_name == 'pull_request' && format('refs/pull/{0}/head', github.event.pull_request.number) || github.ref_name }}"
rtd_project: 'access-experiment-generator' # MODIFY: change this to the Read the Docs project
python_requirements_txt: 'documentation/requirements.txt' # MODIFY: Uncomment to add requirements.txt path. If not included, 'requirements.txt' is used.
mkdocs_yaml: 'documentation/mkdocs.yml' # MODIFY: Uncomment to add mkdocs.yml path. If not included, 'mkdocs.yml' is used.
# lychee_config: '/path/to/lychee_config.toml' # MODIFY: Uncomment to add lychee config path. If not included, the Hive Docs' one gets used.
# # MODIFY: Uncomment the lines below if the repo is private. You also need to create a secret named REPO_READ_TOKEN with a token that has repo read permissions.
# secrets:
# repo_read_token: ${{ secrets.REPO_READ_TOKEN }}
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@ name: CI
on:
push:
branches: [ main ]
paths-ignore:
# These are ignored because they don't have anything to do with the model itself
- documentation/**
- .github/**
pull_request:
branches: [ main ]
paths-ignore:
# These are ignored because they don't have anything to do with the model itself
- documentation/**
- .github/**
workflow_dispatch:

env:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/delete_pr_preview_comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Delete PR preview comment
on:
pull_request:
types:
- closed
env:
PR_PREVIEW_COMMENT_LABEL: pr-preview-comment

jobs:
# Delete PR preview comment
delete-pr-preview-comment:
name: Delete PR preview comment
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Remove PR preview comment
uses: access-nri/actions/.github/actions/comment@main
with:
delete: true
label: ${{ env.PR_PREVIEW_COMMENT_LABEL }}
Loading
Loading