(fix): workflow formatting
Some checks failed
deploy-dev.yml / (fix): workflow formatting (push) Failing after 0s
Some checks failed
deploy-dev.yml / (fix): workflow formatting (push) Failing after 0s
This commit is contained in:
parent
9f83f1e1b7
commit
a1af7ce25f
2 changed files with 10 additions and 5 deletions
|
|
@ -49,7 +49,7 @@ jobs:
|
|||
SHORT_SHA="$(git rev-parse --short HEAD)"
|
||||
echo "version=$VERSION" >> "$FORGEJO_OUTPUT"
|
||||
echo "short_sha=$SHORT_SHA" >> "$FORGEJO_OUTPUT"
|
||||
echo "tag=dev-${VERSION}-${SHORT_SHA}" >> "$FORGEJO_OUTPUT"
|
||||
echo "tag=${VERSION}-dev-${SHORT_SHA}" >> "$FORGEJO_OUTPUT"
|
||||
echo "title=${VERSION}-dev-${SHORT_SHA}" >> "$FORGEJO_OUTPUT"
|
||||
|
||||
- name: Create pre-release and upload files
|
||||
|
|
@ -68,9 +68,14 @@ jobs:
|
|||
|
||||
LATEST_PROD_TAG="$(git tag --list 'v*' --sort=-v:refname | head -n 1 || true)"
|
||||
if [ -n "$LATEST_PROD_TAG" ]; then
|
||||
BODY="$(git log "$LATEST_PROD_TAG"..HEAD --pretty=format:'- %s' | sed 's/$/<br>/')"
|
||||
LOG="$(git log "$LATEST_PROD_TAG"..HEAD --pretty=format:'- %s')"
|
||||
SERVER_URL="$(echo "$API" | sed 's|/api/v1.*||')"
|
||||
COMPARE_URL="${SERVER_URL}/${REPO}/compare/${LATEST_PROD_TAG}...${TAG}"
|
||||
BODY="${LOG}
|
||||
|
||||
[View changes](${COMPARE_URL})"
|
||||
else
|
||||
BODY="$(git log --pretty=format:'- %s' | sed 's/$/<br>/')"
|
||||
BODY="$(git log --pretty=format:'- %s')"
|
||||
fi
|
||||
|
||||
HTTP_STATUS=$(curl -s -w "%{http_code}" -o release_out.json -H "Authorization: token $TOKEN" "$API/repos/$REPO/releases/tags/$TAG")
|
||||
|
|
|
|||
Loading…
Reference in a new issue