diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 3a423c3..ced233e 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -1,31 +1,17 @@ name: Trigger Jenkins Job on: - # Trigger the workflow on push events to the main branch or manual dispatch. - push: - branches: - - main workflow_dispatch: - + jobs: trigger: - name: Trigger Jenkins Build + name: Build runs-on: ubuntu-latest - steps: - # Debugging: Check if secrets are correctly passed. - - name: Debug Secrets - run: | - echo "Jenkins URL: ${{ secrets.URL }}" - echo "Jenkins User: ${{ secrets.USER }}" - echo "Jenkins Job: ${{ secrets.JOBS }}" - - # Actual Jenkins trigger step - name: Trigger Jenkins Job uses: appleboy/jenkins-action@master with: url: ${{ secrets.URL }} user: ${{ secrets.USER }} token: ${{ secrets.TOKEN }} - job: ${{ secrets.JOBS }} - debug: true # Enable debugging information + job: ${{ secrets.JOBS }} \ No newline at end of file