7
.github/workflows/sync-search-indices.yml
vendored
7
.github/workflows/sync-search-indices.yml
vendored
@@ -24,12 +24,19 @@ on:
|
||||
schedule:
|
||||
- cron: '53 0/8 * * *' # Run every eight hours at 53 minutes past the hour
|
||||
|
||||
env:
|
||||
FREEZE: ${{ secrets.FREEZE }}
|
||||
|
||||
jobs:
|
||||
updateIndexes:
|
||||
name: Update indexes
|
||||
if: github.repository == 'github/docs-internal'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- if: ${{ env.FREEZE == 'true' }}
|
||||
run: |
|
||||
echo 'The repo is currently frozen! Exiting this workflow.'
|
||||
exit 1 # prevents further steps from running
|
||||
# Check out internal docs repository
|
||||
- name: checkout
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
|
||||
|
||||
Reference in New Issue
Block a user