Skip to content

Commit d59c2a9

Browse files
authored
chore: revert "chore: create issue on test failure for legacy-librarian branch" (#3069)
Reverts #3014 This change is not creating alert PRs for failures on legacy-librarian branch as intended. We are also making some change to how automation is run. Will add "create PR on failure of legacy-librarian head" when changes are done.
1 parent 63f245e commit d59c2a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/librarian.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ jobs:
6969
create-issue-on-failure:
7070
runs-on: ubuntu-24.04
7171
needs: [test, e2e-test]
72-
if: ${{ always() && contains(needs.*.result, 'failure') && github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'legacy-librarian') }}
72+
if: ${{ always() && contains(needs.*.result, 'failure') && github.event_name == 'push' && github.ref == 'refs/heads/main' }}
7373
steps:
74-
- name: Create an issue for push event to main/legacy-librarian
74+
- name: Create an issue for push event to main
7575
run: |
76-
ISSUE_TITLE="all: tests failed at HEAD (${{ github.ref_name }})"
77-
BODY="Tests failed at HEAD of the \`${{ github.ref_name }}\` branch. Please review Workflow Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} for detail."
76+
ISSUE_TITLE="all: tests failed at HEAD"
77+
BODY="Tests failed at HEAD of the \`main\` branch. Please review Workflow Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} for detail."
7878
ISSUE_LINK=$(gh issue create --title "$ISSUE_TITLE" --body "$BODY" --label ":rotating_light: critical" -R $GH_REPO)
7979
ISSUE_NUM=${ISSUE_LINK##*/}
8080
gh issue comment $ISSUE_NUM --body "@googleapis/cloud-sdk-librarian-team A critical issue has been created, please respond immediately."

0 commit comments

Comments
 (0)