From 9d609d561b70f6fbbc34bf4c9af1cce23244cba1 Mon Sep 17 00:00:00 2001 From: Samir Romdhani Date: Tue, 8 Oct 2024 17:07:06 +0200 Subject: [PATCH] test 5 --- .github/workflows/automate_projects.yml | 47 ++++++++++--------- .../{build-project.yml => build-project.txt} | 0 ...d-analysis.yml => sonarcloud-analysis.txt} | 0 ...arcloud-build.yml => sonarcloud-build.txt} | 0 4 files changed, 26 insertions(+), 21 deletions(-) rename .github/workflows/{build-project.yml => build-project.txt} (100%) rename .github/workflows/{sonarcloud-analysis.yml => sonarcloud-analysis.txt} (100%) rename .github/workflows/{sonarcloud-build.yml => sonarcloud-build.txt} (100%) diff --git a/.github/workflows/automate_projects.yml b/.github/workflows/automate_projects.yml index c7e2661d4..dbdcc5ee5 100644 --- a/.github/workflows/automate_projects.yml +++ b/.github/workflows/automate_projects.yml @@ -4,7 +4,13 @@ name: Add issues and pull request to project boards -on: [ issues, pull_request, pull_request_target ] +on: + issues: + types: [opened] + pull_request: + types: [opened] + pull_request_target: + types: [opened] jobs: github-actions-automate-projects: @@ -13,31 +19,30 @@ jobs: if: ${{ (github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]') || (github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target') }} steps: - name: add-new-issues-to-repository-based-project-column - if: github.event_name == 'issues' && github.event.action == 'opened' + if: github.event_name == 'issues' uses: alex-page/github-project-automation-plus@v0.8.3 with: - project: CoMPAS SCT Board + project: samirromdhani sct Board column: To do - repo-token: ${{ secrets.ORG_GITHUB_ACTION_SECRET }} + repo-token: ${{ secrets.SCT_GITHUB_ACTION_SECRET }} - name: add-new-pull-request-to-repository-based-project-column - if: (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.action == 'opened' + if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target' uses: alex-page/github-project-automation-plus@v0.8.3 with: - project: CoMPAS SCT Board + project: samirromdhani sct Board column: To do - repo-token: ${{ secrets.ORG_GITHUB_ACTION_SECRET }} + repo-token: ${{ secrets.SCT_GITHUB_ACTION_SECRET }} - - name: add-new-issues-to-organization-based-project-column - if: github.event_name == 'issues' && github.event.action == 'opened' - uses: alex-page/github-project-automation-plus@v0.8.3 - with: - project: CoMPAS Issues Overview Board - column: To do - repo-token: ${{ secrets.ORG_GITHUB_ACTION_SECRET }} - - name: add-new-pull-request-to-organization-based-project-column - if: (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.action == 'opened' - uses: alex-page/github-project-automation-plus@v0.8.3 - with: - project: CoMPAS Pull Request Overview Board - column: To do - repo-token: ${{ secrets.ORG_GITHUB_ACTION_SECRET }} +# - name: add-new-issues-to-organization-based-project-column +# if: github.event_name == 'issues' && github.event.action == 'opened' +# uses: alex-page/github-project-automation-plus@v0.8.3 +# with: +# project: CoMPAS Issues Overview Board +# column: To do +# repo-token: ${{ secrets.ORG_GITHUB_ACTION_SECRET }} +# - name: add-new-pull-request-to-organization-based-project-column +# if: (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.action == 'opened' +# uses: alex-page/github-project-automation-plus@v0.8.3 +# with: +# project: CoMPAS Pull Request Overview Board +# column: To do diff --git a/.github/workflows/build-project.yml b/.github/workflows/build-project.txt similarity index 100% rename from .github/workflows/build-project.yml rename to .github/workflows/build-project.txt diff --git a/.github/workflows/sonarcloud-analysis.yml b/.github/workflows/sonarcloud-analysis.txt similarity index 100% rename from .github/workflows/sonarcloud-analysis.yml rename to .github/workflows/sonarcloud-analysis.txt diff --git a/.github/workflows/sonarcloud-build.yml b/.github/workflows/sonarcloud-build.txt similarity index 100% rename from .github/workflows/sonarcloud-build.yml rename to .github/workflows/sonarcloud-build.txt