diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ad3e126d7..e161c876a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4 with: # Needed for diff - fetch-depth: ${{ env.NUMBER_OF_COMMITS }} + fetch-depth: 100 - name: Set up Node uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4 diff --git a/.github/workflows/release_workspace.yml b/.github/workflows/release_workspace.yml index 1ade6aa790..d6f48ce981 100644 --- a/.github/workflows/release_workspace.yml +++ b/.github/workflows/release_workspace.yml @@ -74,13 +74,20 @@ jobs: run: yarn install --immutable - name: Fetch previous commit for release check - run: git fetch origin '${{ github.event.before }}' + if: ${{ github.event.before != '' }} + run: git fetch origin '${{ github.event.before }} - name: Check if release id: release_check if: inputs.force_release != true - run: node ../../scripts/ci/check-if-release.js + run: | + COMMIT_SHA_BEFORE=${{ github.event.before }} + if [ -z "$COMMIT_SHA_BEFORE" ]; then + COMMIT_SHA_BEFORE=$(git rev-list --max-parents=0 HEAD) + fi + node ../../scripts/ci/check-if-release.js env: + TARGET_BRANCH: ${{ inputs.branch }} WORKSPACE_NAME: ${{ inputs.workspace }} COMMIT_SHA_BEFORE: '${{ github.event.before }}' diff --git a/workspaces/scaffolder-relation-processor/plugins/catalog-backend-module-scaffolder-relation-processor/package.json b/workspaces/scaffolder-relation-processor/plugins/catalog-backend-module-scaffolder-relation-processor/package.json index 36cffe0035..ec2e0868a5 100644 --- a/workspaces/scaffolder-relation-processor/plugins/catalog-backend-module-scaffolder-relation-processor/package.json +++ b/workspaces/scaffolder-relation-processor/plugins/catalog-backend-module-scaffolder-relation-processor/package.json @@ -1,7 +1,7 @@ { "name": "@backstage-community/plugin-catalog-backend-module-scaffolder-relation-processor", "description": "The scaffolder-relation-processor backend module for the catalog plugin.", - "version": "1.2.6", + "version": "1.0.0", "main": "src/index.ts", "types": "src/index.ts", "license": "Apache-2.0",