-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Kingdon Barrett <[email protected]>
- Loading branch information
Kingdon Barrett
committed
Aug 15, 2023
1 parent
4bfa1c8
commit 469b770
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
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,10 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
LINE_COUNT=$(wc -l < pr-summary.csv) | ||
|
||
if [ "$LINE_COUNT" -gt 1 ]; then | ||
echo "Issues found in PR. Attaching pr-summary.csv for review..." | ||
else | ||
echo "No direct issues found in PR. Attaching baseline-unresolved.csv for reference..." | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
LINE_COUNT=$(wc -l < pr-summary.csv) | ||
|
||
if [ "$LINE_COUNT" -le 1 ]; then | ||
# Using GitHub CLI to comment on the PR. | ||
gh pr comment ${{ github.event.pull_request.number }} --body "Warning: Some unresolved baseline issues are present. Please check the attached baseline-unresolved.csv." | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Test Action Workflow | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
prNumber: | ||
description: 'PR number to test against' | ||
required: true | ||
default: '1573' | ||
|
||
jobs: | ||
test-action: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Ruby 3.0 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.0 | ||
bundler-cache: true | ||
|
||
- name: Run the action | ||
uses: ./action/ | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
prNumber: ${{ github.event.inputs.prNumber }} |