diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a7c88d6..ac82b13 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,3 +19,17 @@ jobs: @semantic-release/git@9.0.0 env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ./ + - name: Output + run: | + echo "Slug variables" + echo " ref : ${{ env.GITHUB_REF_SLUG }}" + echo " head ref : ${{ env.GITHUB_HEAD_REF_SLUG }}" + echo " base ref : ${{ env.GITHUB_BASE_REF_SLUG }}" + echo "Short SHA variables" + echo " sha : ${{ env.GITHUB_SHA_SHORT }}" diff --git a/entrypoint.sh b/entrypoint.sh index 4aed032..9316f0a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -18,3 +18,5 @@ short_sha() { echo "GITHUB_BASE_REF_SLUG=$(slug_ref "$GITHUB_BASE_REF")" echo "GITHUB_SHA_SHORT=$(short_sha "$GITHUB_SHA")" } >>"$GITHUB_ENV" + +echo "::warning ::This version is deprecated, please use 'rlespinasse/github-slug-action@v3.x' instead"