Skip to content

Commit

Permalink
ci: check dependencies on release preparation (#143)
Browse files Browse the repository at this point in the history
* ci: check dependencies prior to release draft

* pr remark
  • Loading branch information
ndr-brt authored Oct 11, 2024
1 parent 2ffdaad commit 0cf69a3
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:
Dependency-Validation:
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: [ Dependency-Validation ]
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:
Dependency-Validation:
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: [ Dependency-Validation ]
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down

0 comments on commit 0cf69a3

Please sign in to comment.