Common configurations for some GitHub Actions I'm using in multiple projects:
- .markdownlinkcheck.json: configurations for the github-action-markdown-link-check GitHub Action.
- .markdownlint.json: configurations for the markdownlint-cli2-action GitHub Actions.
It prevents me from having to update all repositories when I change something that should apply to all my repositories (i.e: add a link pattern to ignore when linting Markdown links or enforce a specific rule for Markdown linting).
I could have sync the files to other repositories when modified versions are pushed to this one, but I want to prevent modifying the configurations directly in a specific repository by mistake, or having an external contributor submitting a change.
In the GitHub Actions using one of the configuration file, I'm using the wget GitHub Action as a step to download the configuration file as follow:
- name: Download .markdownlint.json
uses: suisei-cn/actions-download-file@v1.4.0
with:
url: "https://raw.githubusercontent.com/fharper/gh-configs/main/.markdownlint.json"