Skip to content

Commit

Permalink
Merge pull request #485 from Java-Discord/moon/build_workflow_trigger
Browse files Browse the repository at this point in the history
Added manual trigger to build workflow
  • Loading branch information
MoonTM-GIT authored Apr 3, 2024
2 parents 1c33781 + c18b3d2 commit ea1e5a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

name: Build JavaBot

on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]

jobs:
build:
Expand All @@ -24,7 +24,7 @@ jobs:
publish:
runs-on: ubuntu-latest
needs: build
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch' }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
Expand Down

0 comments on commit ea1e5a3

Please sign in to comment.