mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-03 00:48:49 -05:00
Remove ensure-related-repos-run-crons (#55944)
This commit is contained in:
@@ -1,56 +0,0 @@
|
||||
# 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 * *'
|
||||
workflow_dispatch: {}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# Ensure scripts are run with pipefail. See:
|
||||
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'microsoft/TypeScript'
|
||||
|
||||
steps:
|
||||
- name: Configure git
|
||||
run: |
|
||||
git config --global user.email "typescriptbot@microsoft.com"
|
||||
git config --global user.name "TypeScript Bot"
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
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 config --unset-all http.https://github.com/.extraheader
|
||||
git push https://${{ secrets.TS_BOT_GITHUB_TOKEN }}@github.com/microsoft/TypeScript-Website.git
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
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 config --unset-all http.https://github.com/.extraheader
|
||||
git push https://${{ secrets.TS_BOT_GITHUB_TOKEN }}@github.com/microsoft/TypeScript-Make-Monaco-Builds.git
|
||||
Reference in New Issue
Block a user