From 4b2acdb6a5bd38cec56a6e6265c18a5a15bffa3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yuniel=20Acosta=20P=C3=A9rez?= Date: Thu, 28 Dec 2023 13:03:09 +0100 Subject: [PATCH] ci(ci/cd): remove pnpm ci --- .github/actions/install/java/action.yml | 17 +++++++++++++++++ .github/workflows/deploy-main-stage.yml | 1 - .github/workflows/pre-release-stage.yml | 1 - 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/actions/install/java/action.yml b/.github/actions/install/java/action.yml index d729c8a0..42966af9 100644 --- a/.github/actions/install/java/action.yml +++ b/.github/actions/install/java/action.yml @@ -10,6 +10,9 @@ inputs: description: 'The arguments to pass to the gradle command' required: false default: 'projects' + github_token: + description: 'GITHUB_TOKEN' + default: '${{ github.token }}' runs: using: composite @@ -28,6 +31,20 @@ runs: - name: ⚙️ Setup Gradle 🐘 uses: gradle/gradle-build-action@v2.9.0 + id: gradle with: arguments: ${{ inputs.gradle-arguments }} dependency-graph: generate-and-submit + + - name: Add Build Scan URL as PR comment + uses: actions/github-script@v5 + if: github.event_name == 'pull_request' && failure() + with: + github-token: ${{ inputs.github_token }} + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: '❌ ${{ github.workflow }} failed: ${{ steps.gradle.outputs.build-scan-url }}' + }) diff --git a/.github/workflows/deploy-main-stage.yml b/.github/workflows/deploy-main-stage.yml index f985c32a..4c61c083 100644 --- a/.github/workflows/deploy-main-stage.yml +++ b/.github/workflows/deploy-main-stage.yml @@ -114,7 +114,6 @@ jobs: - name: Run Semantic Release run: | - pnpm ci npx semantic-release env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/pre-release-stage.yml b/.github/workflows/pre-release-stage.yml index 04739697..45d43911 100644 --- a/.github/workflows/pre-release-stage.yml +++ b/.github/workflows/pre-release-stage.yml @@ -91,7 +91,6 @@ jobs: - name: Run Semantic Release run: | - pnpm ci npx semantic-release env: GITHUB_TOKEN: ${{ env.CI_GITHUB_TOKEN }}