From 59ad9e3cd73d70a2fe04c84e7d1684ed989eb9d1 Mon Sep 17 00:00:00 2001 From: penev92 Date: Tue, 17 Oct 2023 23:55:46 +0300 Subject: [PATCH] Automated documentation.yml running on bleed merge --- .github/workflows/documentation.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 9360a59e90..1f5708d2ad 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -2,6 +2,7 @@ name: Deploy Documentation on: push: + branches: [ bleed ] tags: [ 'release-*', 'playtest-*' ] workflow_dispatch: inputs: @@ -73,9 +74,14 @@ jobs: - name: Prepare environment variables run: | if [ "${{ github.event_name }}" = "push" ]; then - VERSION=`echo "${GITHUB_REF#refs/tags/}" | cut -d"-" -f1` - echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - echo "VERSION=$VERSION" >> $GITHUB_ENV + if [ "${{ github.ref_type }}" = "tag" ]; then + VERSION=`echo "${GITHUB_REF#refs/tags/}" | cut -d"-" -f1` + echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + echo "VERSION=$VERSION" >> $GITHUB_ENV + else + echo "GIT_TAG=bleed" >> $GITHUB_ENV + echo "VERSION=bleed" >> $GITHUB_ENV + fi else VERSION=`echo "${{ github.event.inputs.tag }}" | cut -d"-" -f1` echo "GIT_TAG=${{ github.event.inputs.tag }}" >> $GITHUB_ENV @@ -96,7 +102,7 @@ jobs: run: | make all - # VERSION is release/playtest - the name of the target branch. + # VERSION is release/playtest/bleed - the name of the target branch. - name: Clone docs.openra.net uses: actions/checkout@v3 with: