-
Notifications
You must be signed in to change notification settings - Fork 60
34 lines (30 loc) · 1.06 KB
/
audit-pending-releases.yml
File metadata and controls
34 lines (30 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
on:
push:
branches:
- 'release-please**'
env:
CORE_PACKAGE: core
name: Audit Pending Releases
jobs:
npm-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.ref }}
# if this is an SDK release, make sure there are no pending releases for @openfeature/core
- name: Check for Pending Dependency PRs
if: ${{ !endsWith(github.ref_name, env.CORE_PACKAGE) }}
run: |
if [ $(gh pr list --search '"release ${{ env.CORE_PACKAGE }}" in:title' | wc -l) -gt 0 ]; \
then echo "Pending @openfeaure/${{ env.CORE_PACKAGE }} release. Please release @openfeaure/${{ env.CORE_PACKAGE }} first!" && exit 1; \
else echo "No pending @openfeaure/${{ env.CORE_PACKAGE }} releases"; \
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'