Skip to content

Commit

Permalink
New QOL github action workflows (#29)
Browse files Browse the repository at this point in the history
* New QOL github action workflows

* Testing license automation

* Restore license automation
  • Loading branch information
qmac authored Apr 6, 2022
1 parent 1316f7b commit d490d01
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/copyright-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Update copyright year(s) in license file

on:
workflow_dispatch:
schedule:
- cron: "0 3 1 1 *" # 03:00 AM on January 1

jobs:
update-license-year:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: FantasticFiasco/action-update-license-year@771ff9afdc55b09e1fb649cf03e312d0cf86b4a6
with:
token: ${{ secrets.GITHUB_TOKEN }}
transform: (?<from>\d{4})+-?(\d{4})?
19 changes: 19 additions & 0 deletions .github/workflows/links_fail_fast.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Broken Link Checker

on:
push:
pull_request:

jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Link Checker
uses: lycheeverse/lychee-action@e1ef974431881438bf594f458e332b099fd33bb5 #v1.4.1 https://github.com/lycheeverse/lychee-action#security-tip
with:
args: --verbose --no-progress './**/*.md' './**/*.json' './**/*.cpp' './**/*.h' './**/*.cc'
fail: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit d490d01

Please sign in to comment.