Skip to content

Commit

Permalink
A few workflow cleanups (#44358)
Browse files Browse the repository at this point in the history
  • Loading branch information
heiskr authored Oct 13, 2023
1 parent a1c8e17 commit 499cce0
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/actions/slack-alert/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ runs:
if: >-
${{
failure() &&
env.FREEZE != 'true' &&
github.repository == 'github/docs-internal' &&
github.event_name != 'pull_request' &&
github.event_name != 'pull_request_target'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/content-changes-table-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
outputs:
filterContentDir: ${{ steps.filter.outputs.filterContentDir }}
steps:
- name: Check out repo
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0

- name: Get files changed
uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50
id: filter
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/purge-old-deployment-environments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ on:
permissions:
contents: write

# **IMPORTANT:** Do not change the FREEZE environment variable set here!
# This workflow runs on a recurring basis. To temporarily disable it (e.g.,
# during a docs deployment freeze), add an Actions Secret to the repo settings
# called `FREEZE` with a value of `true`. To re-enable Audit Logs updates, simply
# delete that Secret from the repo settings. The environment variable here
# will duplicate that Secret's value for later evaluation.
env:
FREEZE: ${{ secrets.FREEZE }}

jobs:
purge-old-deployment-environments:
if: ${{ github.repository == 'github/docs-internal' || github.repository == 'github/docs' }}
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/purge-old-workflow-runs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ on:
permissions:
contents: write

# **IMPORTANT:** Do not change the FREEZE environment variable set here!
# This workflow runs on a recurring basis. To temporarily disable it (e.g.,
# during a docs deployment freeze), add an Actions Secret to the repo settings
# called `FREEZE` with a value of `true`. To re-enable Audit Logs updates, simply
# delete that Secret from the repo settings. The environment variable here
# will duplicate that Secret's value for later evaluation.
env:
FREEZE: ${{ secrets.FREEZE }}

jobs:
purge-old-workflow-runs:
if: ${{ github.repository == 'github/docs-internal' || github.repository == 'github/docs' }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/repo-freeze-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
name: Prevent merging during deployment freezes
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0

- name: Fail if repo merges are paused
if: ${{ env.FREEZE == 'true' && github.head_ref != 'repo-sync' }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-search-elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ concurrency:
env:
FREEZE: ${{ secrets.FREEZE }}
ELASTICSEARCH_URL: ${{ secrets.ELASTICSEARCH_URL }}
# Since we'll run in NDOE_ENV=production, we need to be explicit that
# Since we'll run in NODE_ENV=production, we need to be explicit that
# we don't want Hydro configured.
HYDRO_ENDPOINT: ''
HYDRO_SECRET: ''
Expand Down

0 comments on commit 499cce0

Please sign in to comment.