From 1eb391f8659ed10a22c173aa93685ab89ae1d377 Mon Sep 17 00:00:00 2001 From: Andy Date: Fri, 16 Aug 2024 12:54:57 +0300 Subject: [PATCH] trying to fix CI --- .github/workflows/release_action.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release_action.yml b/.github/workflows/release_action.yml index 20b55cf..278234e 100644 --- a/.github/workflows/release_action.yml +++ b/.github/workflows/release_action.yml @@ -25,15 +25,15 @@ jobs: if [[ "$commit_message" =~ ^\[pre-release\]\ \[([0-9]+\.[0-9]+\.[0-9]+)\] ]]; then VERSION="${BASH_REMATCH[1]}" echo "version=$VERSION" >> $GITHUB_ENV - echo "::set-output name=matched::true" + echo "PRE_RELEASE=true" >> $GITHUB_ENV else echo "Commit message does not match the pre-release pattern, exiting..." - echo "::set-output name=matched::false" + echo "PRE_RELEASE=false" >> $GITHUB_ENV exit 0 fi - name: Setup python - if: steps.extract_version.outputs.matched == 'true' + if: env.PRE_RELEASE == 'true' uses: getsentry/action-setup-venv@v2.1.0 with: python-version: 3.10.7 @@ -42,14 +42,14 @@ jobs: venv-dir: ./documentation/.venv - name: Set up Node.js - if: steps.extract_version.outputs.matched == 'true' + if: env.PRE_RELEASE == 'true' uses: actions/setup-node@v4 with: node-version: '20.x' registry-url: 'https://registry.npmjs.org' - name: Publish - if: steps.extract_version.outputs.matched == 'true' + if: env.PRE_RELEASE == 'true' env: NODE_AUTH_TOKEN: ${{ secrets.NPM_KEY }} run: | @@ -58,21 +58,21 @@ jobs: ./etc/publish_new_version.sh ${{ env.version }} - name: Update docs - if: steps.extract_version.outputs.matched == 'true' + if: env.PRE_RELEASE == 'true' run: | npm i npm run generate working-directory: ./documentation - name: Update version in git - if: steps.extract_version.outputs.matched == 'true' + if: env.PRE_RELEASE == 'true' uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: '${{ env.version }} release' tagging_message: ${{ env.version }} - name: Deploy to GitHub Pages - if: steps.extract_version.outputs.matched == 'true' + if: env.PRE_RELEASE == 'true' uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }}