mirror of
https://github.com/bitwarden/server.git
synced 2024-11-26 12:55:17 +01:00
2b38c49ff6
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
---
|
|
name: Collect code references
|
|
|
|
on:
|
|
pull_request:
|
|
branches-ignore:
|
|
- "renovate/**"
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
refs:
|
|
name: Code reference collection
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
|
|
- name: Collect
|
|
id: collect
|
|
uses: launchdarkly/find-code-references-in-pull-request@1f65b77748f7debdccbf2b845dc480ec83dc8073 # v1.3.0
|
|
with:
|
|
project-key: default
|
|
environment-key: dev
|
|
access-token: ${{ secrets.LD_ACCESS_TOKEN }}
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Add label
|
|
if: steps.collect.outputs.any-changed == 'true'
|
|
run: gh pr edit $PR_NUMBER --add-label feature-flag
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
|
|
- name: Remove label
|
|
if: steps.collect.outputs.any-changed == 'false'
|
|
run: gh pr edit $PR_NUMBER --remove-label feature-flag
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|