Skip to content

Commit 2768f16

Browse files
authored
only observe failure status when not caused by freeze (#22943)
1 parent 480159e commit 2768f16

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/check-broken-links-github-github.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ jobs:
5959
#
6060
# https://docs.github.com/actions/reference/context-and-expression-syntax-for-github-actions#job-status-check-functions
6161

62-
- if: ${{ failure() }}
62+
- if: ${{ failure() && env.FREEZE != 'true' }}
6363
name: Get title for issue
6464
id: check
6565
run: echo "::set-output name=title::$(head -1 broken_github_github_links.md)"
66-
- if: ${{ failure() }}
66+
- if: ${{ failure() && env.FREEZE != 'true'}}
6767
name: Create issue from file
6868
id: github-github-broken-link-report
6969
uses: peter-evans/create-issue-from-file@b4f9ee0a9d4abbfc6986601d9b1a4f8f8e74c77e

.github/workflows/enterprise-dates.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
branch: enterprise-server-dates-update
6969
delete-branch: true
7070

71-
- if: ${{ failure() }}
71+
- if: ${{ failure() && env.FREEZE != 'true' }}
7272
name: Delete remote branch (if previous steps failed)
7373
uses: dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911
7474
with:
@@ -84,7 +84,7 @@ jobs:
8484

8585
- name: Send Slack notification if workflow fails
8686
uses: someimportantcompany/github-actions-slack-message@f8d28715e7b8a4717047d23f48c39827cacad340
87-
if: failure()
87+
if: ${{ failure() && env.FREEZE != 'true' }}
8888
with:
8989
channel: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
9090
bot-token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}

.github/workflows/remove-unused-assets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
project: Core docs work for the current week
5959
project-column: Should do
6060
branch: remove-unused-assets
61-
- if: ${{ failure() }}
61+
- if: ${{ failure() && env.FREEZE != 'true' }}
6262
name: Delete remote branch (if previous steps failed)
6363
uses: dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911
6464
with:

.github/workflows/update-graphql-files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
number: ${{ steps.create-pull-request.outputs.pull-request-number }}
7676
- name: Send Slack notification if workflow fails
7777
uses: someimportantcompany/github-actions-slack-message@f8d28715e7b8a4717047d23f48c39827cacad340
78-
if: failure()
78+
if: ${{ failure() && env.FREEZE != 'true' }}
7979
with:
8080
channel: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
8181
bot-token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}

0 commit comments

Comments
 (0)