Skip to content

Commit e46f3ba

Browse files
author
Orta Therox
authored
Adds a github actions workflow which pings related repos with a blank commit once a month to ensure their automation stays running (#46747)
1 parent 0fcd861 commit e46f3ba

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Ensures that repos which are related to TypeScript but may not have regular commits
2+
# have their GitHub Actions scheduled jobs still active due to the 6 week timeout
3+
# on OSS repos. This has already triggered a few times with microsoft/TypeScript-Make-Monaco-Builds
4+
# so, better to automate keeping on top of it.
5+
6+
name: Related Repo Commit Bumps
7+
8+
on:
9+
schedule:
10+
# Monthly, https://crontab.guru/#0_0_*_1-12_*
11+
- cron: '0 0 * 1-12 *'
12+
workflow_dispatch: {}
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Configure git and update package-lock.json
20+
run: |
21+
git config user.email "[email protected]"
22+
git config user.name "TypeScript Bot"
23+
24+
- uses: actions/checkout@v2
25+
with:
26+
repository: 'microsoft/TypeScript-Website'
27+
path: 'ts-site'
28+
29+
- name: Push Commit to TS Website
30+
run: |
31+
cd ts-site
32+
git commit --allow-empty -m "Monthly Bump"
33+
git push https://${{ secrets.TS_BOT_GITHUB_TOKEN }}@github.com/microsoft/TypeScript-Website.git
34+
35+
- uses: actions/checkout@v2
36+
with:
37+
repository: 'microsoft/TypeScript-Make-Monaco-Builds'
38+
path: 'monaco-builds'
39+
40+
- name: Push Commit to TS Make Monaco Builds
41+
run: |
42+
cd monaco-builds
43+
git commit --allow-empty -m "Monthly Bump"
44+
git push https://${{ secrets.TS_BOT_GITHUB_TOKEN }}@github.com/microsoft/TypeScript-Make-Monaco-Builds.git

0 commit comments

Comments
 (0)