From 710e5993f3ef9136934800eb5e7e400a894ed4bd Mon Sep 17 00:00:00 2001 From: Omar-Karimov Date: Wed, 1 May 2024 20:11:12 +0400 Subject: [PATCH] Update --- .github/workflows/main.yaml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) 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