From 17c2e80623967f657a9a27938fc169b46f61398e Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Wed, 8 May 2024 10:31:09 +0200 Subject: [PATCH] Do not dispatch for jenkins jobs (#235) --- .github/workflows/updateJenkins.yaml | 41 ---------------------------- 1 file changed, 41 deletions(-) delete mode 100644 .github/workflows/updateJenkins.yaml diff --git a/.github/workflows/updateJenkins.yaml b/.github/workflows/updateJenkins.yaml deleted file mode 100644 index 64e099a8..00000000 --- a/.github/workflows/updateJenkins.yaml +++ /dev/null @@ -1,41 +0,0 @@ ---- -name: Updates the Jenkins repositories - -on: - push: - branches: - - main - paths: - - 'repos.csv' -env: - GH_CLI_TOKEN: ${{ secrets.GH_CLI_TOKEN }} -jobs: - update-ingest: - runs-on: ubuntu-latest - steps: - - name: detect org - run: | - echo '${{ github.event.commits[0].message }}' > commit.txt - COMMIT_TITLE=$(head -n 1 commit.txt) - rm commit.txt - ADDED_ORG=$(echo $COMMIT_TITLE| sed 's/\[Auto\] The \(.*\) GitHub organization is added\(.*\)$/\1/') - echo $ADDED_ORG - echo "ADDED_ORG=$ADDED_ORG" >> $GITHUB_ENV - echo "COMMIT_TITLE=$COMMIT_TITLE" >> $GITHUB_ENV - - name: update org - if: ${{ env.ADDED_ORG != env.COMMIT_TITLE }} - uses: benc-uk/workflow-dispatch@v1 - with: - workflow: jenkins.yml - repo: moderneinc/moderne-cli - token: ${{ env.GH_CLI_TOKEN }} - inputs: '{ "csvUrl": "https://raw.githubusercontent.com/moderneinc/jenkins-ingest/main/repos.csv", "folder": "cli-ingest", "prefix": "${{ env.ADDED_ORG }}" }' - - name: update the entire list - if: ${{ env.ADDED_ORG == env.COMMIT_TITLE }} - uses: benc-uk/workflow-dispatch@v1 - with: - workflow: jenkins.yml - token: ${{ env.GH_CLI_TOKEN }} - repo: moderneinc/moderne-cli - inputs: '{ "csvUrl": "https://raw.githubusercontent.com/moderneinc/jenkins-ingest/main/repos.csv", "folder": "cli-ingest" }' -