Skip to content

Commit 3d8c9e5

Browse files
authored
repo sync
2 parents 41bf516 + 6a0f962 commit 3d8c9e5

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.github/workflows/repo-sync-stalls.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ jobs:
5858
channel: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
5959
bot-token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
6060
color: failure
61-
text: Repo sync appears to be stalled for ${{github.repository}}. See https://github.com/${{github.repository}}/pulls?q=is%3Apr+is%3Aopen+repo+sync
61+
text: Repo sync appears to be stalled for ${{github.repository}}. See https://github.com/${{github.repository}}/pulls?q=is%3Apr+is%3Aopen+label%3Aautomated-reposync-pr

script/purge-redis-pages.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
//
99
// [end-readme]
1010

11-
const program = require('commander')
1211
const Redis = require('ioredis')
1312

1413
const { REDIS_URL, HEROKU_RELEASE_VERSION, HEROKU_PRODUCTION_APP } = process.env
@@ -21,12 +20,8 @@ const startTime = Date.now()
2120
const expirationDuration = 30 * 60 * 1000 // 30 minutes
2221
const expirationTimestamp = startTime + expirationDuration // 30 minutes from now
2322

24-
program
25-
.description('Purge the Redis rendered page cache')
26-
.option('-d, --dry-run', 'print keys to be purged without actually purging')
27-
.parse(process.argv)
28-
29-
const dryRun = program.dryRun
23+
// print keys to be purged without actually purging
24+
const dryRun = ['-d', '--dry-run'].includes(process.argv[2])
3025

3126
// verify environment variables
3227
if (!REDIS_URL) {

0 commit comments

Comments
 (0)