forked from dotnet/csharpstandard
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update antlr test harness (dotnet#1177)
* Update for the latest Antlr testing * remove old grammar processor
- Loading branch information
1 parent
149297d
commit 874bfc9
Showing
4 changed files
with
86 additions
and
82 deletions.
There are no files selected for viewing
Binary file renamed
BIN
+248 KB
...EcmaTC49.BuildGrammar.1.0.0-alpha.4.nupkg → .../EcmaTC49.BuildGrammar.2.0.0-beta.3.nupkg
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# This GitHub Action workflow is triggered on label changes for pull requests. | ||
# When a pull request is labeled with "DO NOT MERGE", the workflow fails, thus | ||
# preventing the pull request from being merged. Otherwise, the workflow will | ||
# succeed, allowing the pull request to be merged. | ||
|
||
name: "Check labels that prevent merge" | ||
on: | ||
pull_request: | ||
branches: [main] | ||
types: [labeled, unlabeled] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
labels-preventing-merge-check: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
label: | ||
# Labels that prevent merging | ||
- 'do not merge' | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | ||
with: | ||
egress-policy: audit | ||
|
||
- name: 'Check "${{ matrix.label }}" label' | ||
run: | | ||
echo "::notice::Merging permission is diabled for PRs when the '${{ matrix.label }}' label is applied." | ||
if [ "${{ contains(github.event.pull_request.labels.*.name, matrix.label) }}" = "true" ]; then | ||
echo "::error::Pull request is labeled as '${{ matrix.label }}'. Please remove the label before merging." | ||
exit 1 | ||
else | ||
exit 0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters