From 1d0e1b77ea4db942288b27e563b33779a329865b Mon Sep 17 00:00:00 2001 From: Sargun Vohra Date: Fri, 6 Dec 2024 18:33:54 -0800 Subject: [PATCH] move dependency submission to ci workflow --- .github/workflows/ci.yml | 18 +++++++++++++++ .github/workflows/dependency-submission.yml | 25 --------------------- 2 files changed, 18 insertions(+), 25 deletions(-) delete mode 100644 .github/workflows/dependency-submission.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8fbe903..8610209f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -117,6 +117,24 @@ jobs: ORG_GRADLE_PROJECT_githubToken: "${{ secrets.GITHUB_TOKEN }}" ORG_GRADLE_PROJECT_githubUser: "${{ github.actor }}" + dependency-submission: + if: "${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}" + runs-on: "ubuntu-latest" + permissions: + contents: "write" + steps: + - uses: "actions/checkout@v4" + - uses: "actions/setup-java@v4" + with: + distribution: "temurin" + java-version: 21 + - uses: "gradle/actions/dependency-submission@v4" + with: + build-scan-publish: true + build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use" + build-scan-terms-of-use-agree: "yes" + - uses: "advanced-security/cocoapods-dependency-submission-action@v1.1" + all-good: needs: - "check-format" diff --git a/.github/workflows/dependency-submission.yml b/.github/workflows/dependency-submission.yml deleted file mode 100644 index d3ca52de..00000000 --- a/.github/workflows/dependency-submission.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -name: "Dependency Submission" - -on: - push: - branches: - - "main" - -jobs: - dependency-submission: - runs-on: "ubuntu-latest" - permissions: - contents: "write" - steps: - - uses: "actions/checkout@v4" - - uses: "actions/setup-java@v4" - with: - distribution: "temurin" - java-version: 21 - - uses: "gradle/actions/dependency-submission@v4" - with: - build-scan-publish: true - build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use" - build-scan-terms-of-use-agree: "yes" - - uses: "advanced-security/cocoapods-dependency-submission-action@v1.1"