Skip to content

Commit ff08783

Browse files
fix: GH docs update workflow (docker-mailserver#3241)
1 parent 1e20e7c commit ff08783

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/docs-production-deploy.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,11 @@ jobs:
123123
id: update-latest
124124
run: |
125125
DOCS_VERSION=$(grep -oE 'v[0-9]+\.[0-9]+' <<< "${GITHUB_REF}")
126-
echo "DOCS_VERSION=${DOCS_VERSION}" >> "${GITHUB_ENV}"
127-
ln -sf ${DOCS_VERSION} latest
126+
echo "DOCS_VERSION=${DOCS_VERSION}" >>"${GITHUB_ENV}"
127+
rm latest
128+
ln -s "${DOCS_VERSION}" latest
128129
129130
- name: 'Push update for `latest` symlink'
130-
# The step will fail if no change was made; ignore that failure
131-
continue-on-error: true
132131
run: |
133132
git config user.name ${{ env.GIT_USER }}
134133
git config user.email ${{ env.GIT_EMAIL }}

0 commit comments

Comments
 (0)