Skip to content

Commit

Permalink
Create launch-darkly-flag-sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shaed-parkar authored Nov 28, 2024
1 parent ba655b9 commit 0a903ab
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/launch-darkly-flag-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Find LaunchDarkly flag code references
on: push
# cancel in-flight workflow run if another push was triggered
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
launchDarklyCodeReferences:
name: LaunchDarkly Code References
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 11 # This value must be set if the lookback configuration option is not disabled for find-code-references. Read more: https://github.com/launchdarkly/ld-find-code-refs#searching-for-unused-flags-extinctions
- name: LaunchDarkly Code References
uses: launchdarkly/find-code-references@v2
with:
accessToken: ${{ secrets.LD_SERVICE_TOKEN }}
projKey: VH
debug: true
prune: true

0 comments on commit 0a903ab

Please sign in to comment.