diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 0000000..cd1d245 --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,20 @@ +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_ACCESS_TOKEN }} + projKey: YOUR_PROJECT_KEY