| 1 |
name: "various tidying up tasks to silence nagging" |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: |
| 6 |
- main |
| 7 |
workflow_dispatch: |
| 8 |
|
| 9 |
jobs: |
| 10 |
makework: |
| 11 |
runs-on: ubuntu-latest |
| 12 |
steps: |
| 13 |
- uses: actions/checkout@v2 |
| 14 |
with: |
| 15 |
fetch-depth: 0 |
| 16 |
- name: Use Node.js |
| 17 |
uses: actions/[email protected] |
| 18 |
with: |
| 19 |
node-version: 16.x |
| 20 |
- name: put repo in package.json |
| 21 |
run: node .github/workflows/package-json-repo.js |
| 22 |
- name: check in package.json if modified |
| 23 |
run: | |
| 24 |
bash -x .github/workflows/commit-if-modified.sh \ |
| 25 |
"[email protected]" \ |
| 26 |
"package.json Repo Bot" \ |
| 27 |
"chore: add repo to package.json" \ |
| 28 |
package.json package-lock.json |
| 29 |
- name: put all dates in license copyright line |
| 30 |
run: bash .github/workflows/copyright-year.sh |
| 31 |
- name: check in licenses if modified |
| 32 |
run: | |
| 33 |
bash .github/workflows/commit-if-modified.sh \ |
| 34 |
"[email protected]" \ |
| 35 |
"License Year Bot" \ |
| 36 |
"chore: add copyright year to license" \ |
| 37 |
LICENSE* |