Skip to content

Commit

Permalink
Merge pull request #10 from botcity-dev/FIX/verify-deploy-release-ver…
Browse files Browse the repository at this point in the history
…sion

FIX: Verify not version and deploy or release
  • Loading branch information
kayqueGovetri authored Feb 19, 2025
2 parents 1fcfe0e + a6d363c commit a6957cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,7 @@ on:
pull_request:

jobs:
# The authorize job is used to authorize external contributors to run tests
# on the repository. This is necessary because the repository secrets are
# not available to external contributors.
# Source: https://iterative.ai/blog/testing-external-contributions-using-github-actions-secrets
authorize:
environment:
${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
runs-on: ubuntu-latest
steps:
- run: |
true
ci:
needs: authorize
runs-on: 'ubuntu-latest'
defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion src/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def run(self):
self.filepath = self._get_file_path()
bot = self._exist_bot()

if not self.args.version:
if not self.args.version and (self.args.deploy or self.args.release):
raise ValueError("Version is required.")

if self.args.deploy or bot is None:
Expand Down

0 comments on commit a6957cc

Please sign in to comment.