mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-25 21:21:35 +00:00
Fix GHA release script
This commit is contained in:
parent
7c73b131f4
commit
b2712cd2b1
8
.github/workflows/docker.yml
vendored
8
.github/workflows/docker.yml
vendored
@ -32,7 +32,7 @@ jobs:
|
|||||||
if: github.event_name == 'release' # Only for GitHub releases
|
if: github.event_name == 'release' # Only for GitHub releases
|
||||||
run: |
|
run: |
|
||||||
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||||
echo "BUILD=$(git rev-parse --short HEAD || "") >> $GITHUB_ENV
|
echo "BUILD=$(git rev-parse --short HEAD || \"\")" >> $GITHUB_ENV
|
||||||
BRANCH=$(git symbolic-ref --short HEAD | tr -d \/)
|
BRANCH=$(git symbolic-ref --short HEAD | tr -d \/)
|
||||||
[ ${BRANCH} == "main" ] && BRANCH=""
|
[ ${BRANCH} == "main" ] && BRANCH=""
|
||||||
echo "BRANCH=${BRANCH}" >> $GITHUB_ENV
|
echo "BRANCH=${BRANCH}" >> $GITHUB_ENV
|
||||||
@ -112,7 +112,7 @@ jobs:
|
|||||||
if: github.event_name == 'release' # Only for GitHub releases
|
if: github.event_name == 'release' # Only for GitHub releases
|
||||||
run: |
|
run: |
|
||||||
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||||
echo "BUILD=$(git rev-parse --short HEAD || "") >> $GITHUB_ENV
|
echo "BUILD=$(git rev-parse --short HEAD || \"\")" >> $GITHUB_ENV
|
||||||
BRANCH=$(git symbolic-ref --short HEAD | tr -d \/)
|
BRANCH=$(git symbolic-ref --short HEAD | tr -d \/)
|
||||||
[ ${BRANCH} == "main" ] && BRANCH=""
|
[ ${BRANCH} == "main" ] && BRANCH=""
|
||||||
echo "BRANCH=${BRANCH}" >> $GITHUB_ENV
|
echo "BRANCH=${BRANCH}" >> $GITHUB_ENV
|
||||||
@ -191,7 +191,7 @@ jobs:
|
|||||||
if: github.event_name == 'release' # Only for GitHub releases
|
if: github.event_name == 'release' # Only for GitHub releases
|
||||||
run: |
|
run: |
|
||||||
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||||
echo "BUILD=$(git rev-parse --short HEAD || "") >> $GITHUB_ENV
|
echo "BUILD=$(git rev-parse --short HEAD || \"\")" >> $GITHUB_ENV
|
||||||
BRANCH=$(git symbolic-ref --short HEAD | tr -d \/)
|
BRANCH=$(git symbolic-ref --short HEAD | tr -d \/)
|
||||||
[ ${BRANCH} == "main" ] && BRANCH=""
|
[ ${BRANCH} == "main" ] && BRANCH=""
|
||||||
echo "BRANCH=${BRANCH}" >> $GITHUB_ENV
|
echo "BRANCH=${BRANCH}" >> $GITHUB_ENV
|
||||||
@ -258,7 +258,7 @@ jobs:
|
|||||||
if: github.event_name == 'release' # Only for GitHub releases
|
if: github.event_name == 'release' # Only for GitHub releases
|
||||||
run: |
|
run: |
|
||||||
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||||
echo "BUILD=$(git rev-parse --short HEAD || "") >> $GITHUB_ENV
|
echo "BUILD=$(git rev-parse --short HEAD || \"\")" >> $GITHUB_ENV
|
||||||
BRANCH=$(git symbolic-ref --short HEAD | tr -d \/)
|
BRANCH=$(git symbolic-ref --short HEAD | tr -d \/)
|
||||||
[ ${BRANCH} == "main" ] && BRANCH=""
|
[ ${BRANCH} == "main" ] && BRANCH=""
|
||||||
echo "BRANCH=${BRANCH}" >> $GITHUB_ENV
|
echo "BRANCH=${BRANCH}" >> $GITHUB_ENV
|
||||||
|
Loading…
Reference in New Issue
Block a user