Skip to content

Commit

Permalink
Update pin-requirements.yml (#750)
Browse files Browse the repository at this point in the history
Don't use deprecated set-output, improve latest tag command.

Signed-off-by: Dustin Ingram <di@users.noreply.github.com>
  • Loading branch information
di authored Aug 29, 2023
1 parent 20cb29d commit 961e787
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/pin-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,11 @@ jobs:
ref: main

- name: Get latest tag
id: latest_tag
run: echo "::set-output name=tag::$(git describe --tags --abbrev=0)"
run: echo "LATEST_TAG="$(git rev-list --tags --max-count=1 --abbrev-commit)" >> $GITHUB_ENV

- name: Set SIGSTORE_RELEASE_TAG and SIGSTORE_NEW_BRANCH
env:
INPUT_TAG: "${{ inputs.tag }}"
LATEST_TAG: "${{ steps.latest_tag.outputs.tag }}"
run: |
if [ -n "${INPUT_TAG}" ]; then
echo "SIGSTORE_RELEASE_TAG=${INPUT_TAG}" >> $GITHUB_ENV
Expand Down

0 comments on commit 961e787

Please sign in to comment.