Debug action.yml

This commit is contained in:
linguist
2020-12-31 14:46:39 +01:00
parent 6f27f2aa04
commit 49739a35ce

View File

@@ -367,13 +367,9 @@ runs:
METRICS_REF=$(echo $METRICS_ACTION | sed -E 's/^.*metrics//g') METRICS_REF=$(echo $METRICS_ACTION | sed -E 's/^.*metrics//g')
echo "Running on $METRICS_SOURCE/metrics@$METRICS_REF" echo "Running on $METRICS_SOURCE/metrics@$METRICS_REF"
git status || true # Debug
git branch || true echo $INPUTS
echo "===" exit 1
env
echo "==="
env | grep -E '^(INPUT|GITHUB|RUNNER|ACTIONS|HOME|CI)'
echo "==="
# If using official action, use docker image from GitHub registry # If using official action, use docker image from GitHub registry
if [[ $METRICS_SOURCE == "lowlighter-test-forks" ]]; then if [[ $METRICS_SOURCE == "lowlighter-test-forks" ]]; then
@@ -394,4 +390,5 @@ runs:
shell: bash shell: bash
env: env:
METRICS_ACTION: ${{ github.action }} METRICS_ACTION: ${{ github.action }}
METRICS_ACTION_PATH: ${{ github.action_path }} METRICS_ACTION_PATH: ${{ github.action_path }}
INPUTS: ${{ inputs }}