-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
6 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
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,11 +1,28 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
if [[ -z "${GITHUB_WORKSPACE}" ]]; then | ||
echo "Must set GITHUB_WORKSPACE in env" | ||
function die() | ||
{ | ||
echo "::error::$1" | ||
echo "------------------------------------------------------------------------------------------------------------------------" | ||
exit 1 | ||
fi | ||
} | ||
|
||
cd "${GITHUB_WORKSPACE}" || exit 2 | ||
cat << END | ||
------------------------------------------------------------------------------------------------------------------------ | ||
_ _ | ||
__ _ ___| |_(_) ___ _ __ _ __ ___ _ __ ___ _ __ ___ __ _ _ __ | ||
/ _\` |/ __| __| |/ _ \| '_ \ _____| '__/ _ \ '_ \ / _ \| '_ \` _ \ / _\` | '_ \\ | ||
| (_| | (__| |_| | (_) | | | |_____| | | __/ |_) | (_) | | | | | | (_| | | | | | ||
\__,_|\___|\__|_|\___/|_| |_| |_| \___| .__/ \___/|_| |_| |_|\__,_|_| |_| | ||
|_| | ||
https://github.com/hacking-gentoo/action-repoman (c) 2019 Max Hacking | ||
------------------------------------------------------------------------------------------------------------------------ | ||
END | ||
|
||
PORTDIR_OVERLAY="." repoman --straight-to-stable -dx full | ||
[[ -z "${GITHUB_WORKSPACE}" ]] && die "Must set GITHUB_WORKSPACE in env" | ||
cd "${GITHUB_WORKSPACE}" || die "GITHUB_WORKSPACE does not exist" | ||
|
||
PORTDIR_OVERLAY="." repoman --straight-to-stable -dx full || die "Repoman failed" | ||
|
||
echo "------------------------------------------------------------------------------------------------------------------------" |