mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
fix: GH docs update workflow (#3241)
This commit is contained in:
parent
1e20e7c332
commit
ff087837bd
7
.github/workflows/docs-production-deploy.yml
vendored
7
.github/workflows/docs-production-deploy.yml
vendored
|
@ -123,12 +123,11 @@ jobs:
|
||||||
id: update-latest
|
id: update-latest
|
||||||
run: |
|
run: |
|
||||||
DOCS_VERSION=$(grep -oE 'v[0-9]+\.[0-9]+' <<< "${GITHUB_REF}")
|
DOCS_VERSION=$(grep -oE 'v[0-9]+\.[0-9]+' <<< "${GITHUB_REF}")
|
||||||
echo "DOCS_VERSION=${DOCS_VERSION}" >> "${GITHUB_ENV}"
|
echo "DOCS_VERSION=${DOCS_VERSION}" >>"${GITHUB_ENV}"
|
||||||
ln -sf ${DOCS_VERSION} latest
|
rm latest
|
||||||
|
ln -s "${DOCS_VERSION}" latest
|
||||||
|
|
||||||
- name: 'Push update for `latest` symlink'
|
- name: 'Push update for `latest` symlink'
|
||||||
# The step will fail if no change was made; ignore that failure
|
|
||||||
continue-on-error: true
|
|
||||||
run: |
|
run: |
|
||||||
git config user.name ${{ env.GIT_USER }}
|
git config user.name ${{ env.GIT_USER }}
|
||||||
git config user.email ${{ env.GIT_EMAIL }}
|
git config user.email ${{ env.GIT_EMAIL }}
|
||||||
|
|
Loading…
Reference in a new issue