generated from im-open/javascript-action-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARCH-1911 - Transfer to Infra-Purple - Remove deprecated create-ref input & associated github-token input - Update CODEOWNERS - Add tests to build-and-review-pr.yml
- Loading branch information
1 parent
8ddd14b
commit fc7ec48
Showing
9 changed files
with
80 additions
and
74 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1 +1 @@ | ||
* @im-open/swat | ||
* @im-open/infra-purple |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,37 @@ | ||
#!/bin/bash | ||
|
||
name='' | ||
expectedValue='' | ||
actualValue='' | ||
|
||
for arg in "$@"; do | ||
case $arg in | ||
--name) | ||
name=$2 | ||
shift # Remove argument --name from `$@` | ||
shift # Remove argument value from `$@` | ||
;; | ||
--expected) | ||
expectedValue=$2 | ||
shift # Remove argument --expected from `$@` | ||
shift # Remove argument value from `$@` | ||
;; | ||
--actual) | ||
actualValue=$2 | ||
shift # Remove argument --actual from `$@` | ||
shift # Remove argument value from `$@` | ||
;; | ||
|
||
esac | ||
done | ||
|
||
echo " | ||
Expected $name: '$expectedValue'" | ||
echo "Actual $name: '$actualValue'" | ||
|
||
if [ "$expectedValue" != "$actualValue" ]; then | ||
echo "The expected $name does not match the actual $name." | ||
exit 1 | ||
else | ||
echo "The expected and actual $name values match." | ||
fi |