Skip to content

Commit

Permalink
Update pin-requirements.yml (#752)
Browse files Browse the repository at this point in the history
Last couple fixes for this workflow 🤞

Signed-off-by: Dustin Ingram <[email protected]>
  • Loading branch information
di authored Aug 29, 2023
1 parent 34ca76d commit 2a2512b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pin-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ jobs:
ref: main

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

- name: Set SIGSTORE_RELEASE_TAG and SIGSTORE_NEW_BRANCH
env:
INPUT_TAG: "${{ inputs.tag }}"
run: |
if [ -n "${INPUT_TAG}" ]; then
echo "SIGSTORE_RELEASE_TAG=${INPUT_TAG}" >> $GITHUB_ENV
echo "SIGSTORE_NEW_BRANCH=pin-requirements/sigstore/${INPUT_TAG}" >> $GITHUB_ENV
echo "SIGSTORE_RELEASE_TAG=${INPUT_TAG}" >> "$GITHUB_ENV"
echo "SIGSTORE_NEW_BRANCH=pin-requirements/sigstore/${INPUT_TAG}" >> "$GITHUB_ENV"
else
echo "SIGSTORE_RELEASE_TAG=${LATEST_TAG}" >> $GITHUB_ENV
echo "SIGSTORE_NEW_BRANCH=pin-requirements/sigstore/${LATEST_TAG}" >> $GITHUB_ENV
echo "SIGSTORE_RELEASE_TAG=${LATEST_TAG}" >> "$GITHUB_ENV"
echo "SIGSTORE_NEW_BRANCH=pin-requirements/sigstore/${LATEST_TAG}" >> "$GITHUB_ENV"
fi
- name: Configure git
Expand Down

0 comments on commit 2a2512b

Please sign in to comment.