Skip to content

Commit 877ef16

Browse files
authored
GitHub Actions LintDiff -> Live (#35431)
1 parent b5c7418 commit 877ef16

File tree

3 files changed

+6
-41
lines changed

3 files changed

+6
-41
lines changed

.github/workflows/lintdiff-code.yaml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "[TEST-IGNORE] Swagger LintDiff - Analyze Code"
1+
name: "Swagger LintDiff - Analyze Code"
22

33
on: pull_request
44

@@ -7,7 +7,7 @@ permissions:
77

88
jobs:
99
lintdiff:
10-
name: "[TEST-IGNORE] Swagger LintDiff - Analyze Code"
10+
name: "Swagger LintDiff - Analyze Code"
1111
runs-on: ubuntu-24.04
1212

1313
steps:
@@ -49,12 +49,6 @@ jobs:
4949
writeFileSync(filePath, changedFiles.join('\n'), 'utf8');
5050
console.log(`Changed files written to ${filePath}`);
5151
52-
- name: Prepend test notice to summary
53-
if: always()
54-
run: |
55-
temp_file=$(mktemp)
56-
echo -e "> [!IMPORTANT]\n> This check is testing a new version of 'Swagger LintDiff'.\n> Failures are expected, and should be completely ignored by spec authors and reviewers.\n> Meaningful results for this PR are are in required check 'Swagger LintDiff'.\n" > $GITHUB_STEP_SUMMARY
57-
5852
# TODO: Could be github.sha for merge commit
5953
- name: Run LintDiff
6054
run: |
@@ -65,10 +59,6 @@ jobs:
6559
--base-branch ${{ github.event.pull_request.base.ref }} \
6660
--compare-sha ${{ github.event.pull_request.head.sha }} \
6761
--out-file $GITHUB_STEP_SUMMARY
68-
69-
echo "⚠️ This check is testing a new version of 'Swagger LintDiff'."
70-
echo "⚠️ Failures are expected, and should be completely ignored by spec authors and reviewers."
71-
echo "⚠️ Meaningful results for this PR are are in required check 'Swagger LintDiff'."
7262
env:
7363
# Some LintDiff runs are memory intensive and require more than the
7464
# default.

.github/workflows/lintdiff-status.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "[TEST-IGNORE] Swagger LintDiff - Set Status"
1+
name: "Swagger LintDiff - Set Status"
22

33
on:
44
# Must run on pull_request_target instead of pull_request, since the latter cannot trigger on
@@ -15,7 +15,7 @@ on:
1515
- labeled
1616
- unlabeled
1717
workflow_run:
18-
workflows: ["\\[TEST-IGNORE\\] Swagger LintDiff - Analyze Code"]
18+
workflows: ["Swagger LintDiff - Analyze Code"]
1919
types: [completed]
2020

2121
permissions:
@@ -30,6 +30,6 @@ jobs:
3030
name: Set LintDiff Status
3131
uses: ./.github/workflows/_reusable-set-check-status.yml
3232
with:
33-
monitored_workflow_name: "[TEST-IGNORE] Swagger LintDiff - Analyze Code"
34-
required_check_name: "[TEST-IGNORE] Swagger LintDiff"
33+
monitored_workflow_name: "Swagger LintDiff - Analyze Code"
34+
required_check_name: "Swagger LintDiff"
3535
overriding_label: "Approved-LintDiff"

.github/workflows/watch-lintdiff.yaml

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)