-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (33 loc) · 953 Bytes
/
validate-flags.yaml
File metadata and controls
37 lines (33 loc) · 953 Bytes
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
35
36
37
name: "Validate Flags"
on:
pull_request:
types:
- opened
- synchronize
- reopened
branches:
- main
workflow_dispatch:
jobs:
validate-flags:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Required for git branch comparison
# Automatically compares against PR base branch (main)
- name: Compare against base branch
uses: open-feature/action@v0.0.2
with:
manifest: "flags.json"
- name: Compare against remote manifest
if: ${{ secrets.FLAGD_STUDIO_TOKEN != '' }} # Secret not accessible for PRs from forks
uses: open-feature/action@v0.0.2
with:
manifest: "flags.json"
against: "https://flagd-studio.onrender.com/api"
auth-token: ${{ secrets.FLAGD_STUDIO_TOKEN }}