mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Adds a github actions workflow which pings related repos with a blank commit once a month to ensure their automation stays running (#46747)
This commit is contained in:
parent
0fcd86150e
commit
e46f3baec1
44
.github/workflows/ensure-related-repos-run-crons.yml
vendored
Normal file
44
.github/workflows/ensure-related-repos-run-crons.yml
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
# Ensures that repos which are related to TypeScript but may not have regular commits
|
||||
# have their GitHub Actions scheduled jobs still active due to the 6 week timeout
|
||||
# on OSS repos. This has already triggered a few times with microsoft/TypeScript-Make-Monaco-Builds
|
||||
# so, better to automate keeping on top of it.
|
||||
|
||||
name: Related Repo Commit Bumps
|
||||
|
||||
on:
|
||||
schedule:
|
||||
# Monthly, https://crontab.guru/#0_0_*_1-12_*
|
||||
- cron: '0 0 * 1-12 *'
|
||||
workflow_dispatch: {}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Configure git and update package-lock.json
|
||||
run: |
|
||||
git config user.email "typescriptbot@microsoft.com"
|
||||
git config user.name "TypeScript Bot"
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
repository: 'microsoft/TypeScript-Website'
|
||||
path: 'ts-site'
|
||||
|
||||
- name: Push Commit to TS Website
|
||||
run: |
|
||||
cd ts-site
|
||||
git commit --allow-empty -m "Monthly Bump"
|
||||
git push https://${{ secrets.TS_BOT_GITHUB_TOKEN }}@github.com/microsoft/TypeScript-Website.git
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
repository: 'microsoft/TypeScript-Make-Monaco-Builds'
|
||||
path: 'monaco-builds'
|
||||
|
||||
- name: Push Commit to TS Make Monaco Builds
|
||||
run: |
|
||||
cd monaco-builds
|
||||
git commit --allow-empty -m "Monthly Bump"
|
||||
git push https://${{ secrets.TS_BOT_GITHUB_TOKEN }}@github.com/microsoft/TypeScript-Make-Monaco-Builds.git
|
||||
Loading…
x
Reference in New Issue
Block a user