generated from im-open/composite-action-template
-
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.
ARCH-1919 - Transfer to Infra-Purple (#14)
* ARCH-1919 - Transfer to Infra-Purple - Update CODEOWNERS - Add tests to build-and-review-pr.yml * ARCH-1919 - Updates for consistency * ARCH-1919 - Address tests and forks in readme
- Loading branch information
1 parent
7793ccf
commit 614e854
Showing
5 changed files
with
165 additions
and
6 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
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 |