Skip to content

Commit

Permalink
@backstage-community/plugin-catalog-backend-module-scaffolder-relatio…
Browse files Browse the repository at this point in the history
[email protected]

* ci(release_workspace): pass through environment variable
* ci(ci): change fetch-depth
* handle no github event
* delete changeset

Signed-off-by: Beth Griggs <[email protected]>
  • Loading branch information
BethGriggs committed Aug 22, 2024
1 parent 62c6ec3 commit 2fa58be
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/release_workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'

Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 2fa58be

Please sign in to comment.