Skip to content

Commit 3b826a4

Browse files
Create main.yml
1 parent 417b454 commit 3b826a4

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/main.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: LaunchDarkly Code References
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
code-refs:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v3
14+
15+
- name: Download ld-find-code-refs binary (v1.8.6)
16+
run: |
17+
curl -sSL https://github.com/launchdarkly/ld-find-code-refs/releases/download/v1.8.6/ld-find-code-refs-linux-amd64 -o ld-find-code-refs
18+
chmod +x ld-find-code-refs
19+
20+
- name: Run ld-find-code-refs
21+
env:
22+
LD_ACCESS_TOKEN: ${{ secrets.LD_ACCESS_TOKEN }}
23+
run: |
24+
./ld-find-code-refs \
25+
--proj-key your-project-key \
26+
--repo-name "${{ github.repository }}" \
27+
--dir . \
28+
--ref ${{ github.ref_name }} \

0 commit comments

Comments
 (0)