Skip to content

Commit

Permalink
ci: support workflow_dispatch event
Browse files Browse the repository at this point in the history
  • Loading branch information
frbuceta committed Jun 5, 2022
1 parent 60e486c commit 995ba18
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: CI

on:
workflow_dispatch:
inputs:
release:
description: 'Run release'
type: boolean
required: true
push:
branches: [ main ]
pull_request:
Expand Down Expand Up @@ -39,7 +45,7 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
if: ${{ github.event.schedule }}
if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.release == 'true') }} # FixMe: https://github.com/actions/runner/issues/1483
needs: [test, lint]
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 995ba18

Please sign in to comment.