Skip to content

Commit 5e43b6e

Browse files
committed
write latest versions to a file and cache for subsequent runs
1 parent c692585 commit 5e43b6e

File tree

15 files changed

+266
-4062
lines changed

15 files changed

+266
-4062
lines changed

.github/workflows/versions.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Versions
2+
3+
# TODO: Switch to daily cron job
4+
on: [push]
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
with:
12+
# Otherwise the token used is the GITHUB_TOKEN instead of personal
13+
persist-credentials: false
14+
# Otherwise will fail to push refs to destination repo
15+
fetch-depth: 0
16+
17+
- uses: actions/setup-node@v1
18+
with:
19+
node-version: "12"
20+
21+
- name: Update tooling versions
22+
run: |
23+
node ./dist/update.js
24+
25+
- name: Commit files
26+
run: |
27+
git config --local user.email "[email protected]"
28+
git config --local user.name "GitHub Action"
29+
git commit -m "Sync repository with latest tooling" -a
30+
31+
- name: Push changes
32+
uses: ad-m/[email protected]
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}

dist/index.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)