Skip to content

Commit

Permalink
ci: check dependencies prior to release draft
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt committed Oct 10, 2024
1 parent cef52a6 commit 87dcb7c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/core-prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,20 @@ on:
type: string

jobs:
Checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout$4
- name: check for restricted / rejected dependencies
run: |
grep -hs -e restricted -e rejected DEPENDENCIES > unacceptable-dependencies
if [ -s unacceptable-dependencies ]; then
echo "Some dependencies are not in the expected status:"
cat unacceptable-dependencies
fi
Prepare-Release:
needs: [ Checks ]
runs-on: ubuntu-latest
outputs:
RELEASE_REF: ${{ steps.commit-changes.outputs.RELEASE_REF }}
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/technology-prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,20 @@ on:
type: string

jobs:
Checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout$4
- name: check for restricted / rejected dependencies
run: |
grep -hs -e restricted -e rejected DEPENDENCIES > unacceptable-dependencies
if [ -s unacceptable-dependencies ]; then
echo "Some dependencies are not in the expected status:"
cat unacceptable-dependencies
fi
Prepare-Release:
needs: [ Checks ]
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down

0 comments on commit 87dcb7c

Please sign in to comment.