diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 587f612..cf7a77c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,10 +4,6 @@ on: pull_request: types: - closed - workflow_dispatch: - push: - branches: - - 'add-reversing-labs' permissions: contents: write diff --git a/.github/workflows/rl-scanner.yml b/.github/workflows/rl-scanner.yml index 1e3ade2..49db848 100644 --- a/.github/workflows/rl-scanner.yml +++ b/.github/workflows/rl-scanner.yml @@ -25,6 +25,7 @@ on: jobs: rl-scanner: + if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged && startsWith(github.event.pull_request.head.ref, 'release/')) runs-on: ubuntu-latest outputs: scan-status: ${{ steps.rl-scan-conclusion.outcome }}