From 74f6642bfcf4cf49add44956751351343930e5af Mon Sep 17 00:00:00 2001 From: Max Hacking Date: Mon, 4 Nov 2019 02:27:46 +0000 Subject: [PATCH] Added copyright notice --- LICENSE | 2 +- entrypoint.sh | 27 ++++++++++++++++++++++----- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/LICENSE b/LICENSE index 323cfb4..6e44a43 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 hacking-gentoo +Copyright (c) 2019 Max Hacking Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/entrypoint.sh b/entrypoint.sh index 4a555aa..bdf2f3c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 "------------------------------------------------------------------------------------------------------------------------" \ No newline at end of file