Skip to content

Commit

Permalink
[ci] Skip in steps rather than the whole job
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed Mar 10, 2022
1 parent f2e9670 commit b0f9378
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@ jobs:
add_version_to_database:
name: Add version to database
# Skip running release workflow on forks
if: github.repository_owner == 'taichi-dev' && github.event_name == 'workflow_dispatch'
if: github.repository_owner == 'taichi-dev'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Save new version
run: |
if [ -z "$RELEASE_VERSION" ]; then
echo "Not a production release"
exit 0
fi
python3 -m pip install requests==2.26
python3 misc/save_new_version.py
Expand Down

0 comments on commit b0f9378

Please sign in to comment.