From 3fa016fcc9a135f8c54ec6aebf9da8b3cde8eee5 Mon Sep 17 00:00:00 2001 From: Robert Sese <734194+rsese@users.noreply.github.com> Date: Sat, 14 Oct 2023 12:19:48 -0500 Subject: [PATCH] More workflow update for the slack alert composite action thing (#44374) --- .github/workflows/hubber-contribution-help.yml | 3 +++ .github/workflows/needs-sme-workflow.yml | 6 ++++++ .github/workflows/repo-sync-stalls.yml | 3 +++ .github/workflows/secret-scanning-pattern-table-updates.yml | 3 +++ .github/workflows/sync-search-elasticsearch.yml | 3 +++ 5 files changed, 18 insertions(+) diff --git a/.github/workflows/hubber-contribution-help.yml b/.github/workflows/hubber-contribution-help.yml index 6b9a1a8bef..bf4ddc1a63 100644 --- a/.github/workflows/hubber-contribution-help.yml +++ b/.github/workflows/hubber-contribution-help.yml @@ -20,6 +20,9 @@ jobs: if: github.repository == 'github/docs-internal' && github.actor != 'github-openapi-bot' runs-on: ubuntu-latest steps: + - name: Check out repo + uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + - id: membership_check uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 with: diff --git a/.github/workflows/needs-sme-workflow.yml b/.github/workflows/needs-sme-workflow.yml index 9641524a5d..5caaf8077a 100644 --- a/.github/workflows/needs-sme-workflow.yml +++ b/.github/workflows/needs-sme-workflow.yml @@ -19,6 +19,9 @@ jobs: if: ${{ github.repository == 'github/docs' && (github.event.label.name == 'needs SME' && github.event_name == 'issues') }} runs-on: ubuntu-latest steps: + - name: Check out repo + uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + - uses: peter-evans/create-or-update-comment@3383acd359705b10cb1eeef05c0e88c056ea4666 with: issue-number: ${{ github.event.issue.number }} @@ -33,6 +36,9 @@ jobs: if: ${{ github.repository == 'github/docs' && (github.event.label.name == 'needs SME' && github.event_name == 'pull_request_target') }} runs-on: ubuntu-latest steps: + - name: Check out repo + uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + - uses: peter-evans/create-or-update-comment@3383acd359705b10cb1eeef05c0e88c056ea4666 with: issue-number: ${{ github.event.pull_request.number }} diff --git a/.github/workflows/repo-sync-stalls.yml b/.github/workflows/repo-sync-stalls.yml index 1ccbf2ab44..8421ba9b45 100644 --- a/.github/workflows/repo-sync-stalls.yml +++ b/.github/workflows/repo-sync-stalls.yml @@ -52,6 +52,9 @@ jobs: } }) + - name: Check out repo + uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + - uses: ./.github/actions/slack-alert with: slack_channel_id: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }} diff --git a/.github/workflows/secret-scanning-pattern-table-updates.yml b/.github/workflows/secret-scanning-pattern-table-updates.yml index a98caab6e0..e4974e83dd 100644 --- a/.github/workflows/secret-scanning-pattern-table-updates.yml +++ b/.github/workflows/secret-scanning-pattern-table-updates.yml @@ -16,6 +16,9 @@ jobs: Process-secret-scanning-PR: runs-on: ubuntu-latest steps: + - name: Check out repo + uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + - name: Label pull requests updating the secret-scanning.yml file with ready-for-doc-review run: gh pr edit $PR --add-label "ready-for-doc-review" env: diff --git a/.github/workflows/sync-search-elasticsearch.yml b/.github/workflows/sync-search-elasticsearch.yml index c02c5cb7a4..867e09a567 100644 --- a/.github/workflows/sync-search-elasticsearch.yml +++ b/.github/workflows/sync-search-elasticsearch.yml @@ -84,6 +84,9 @@ jobs: - name: Debug output run: echo "${{ steps.set-matrix.outputs.result }}" + - name: Check out repo + uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + - uses: ./.github/actions/slack-alert with: slack_channel_id: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}