Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/nr1_lib_deprecations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: NR1 Library Deprecation Checks

on: [push, workflow_dispatch]

jobs:
nr1_lib_deprecations:
name: Run NR1 Library Deprecation Checks
runs-on: ubuntu-latest
steps:
- name: Test Default Branch
id: default-branch
uses: actions/github-script@v2
with:
script: |
const data = await github.repos.get(context.repo)
return data.data && data.data.default_branch === context.ref.split('/').slice(-1)[0]
- name: Checkout Self
if: ${{ steps.default-branch.outputs.result == 'true' }}
uses: actions/checkout@v2
- name: Run Repolinter
if: ${{ steps.default-branch.outputs.result == 'true' }}
uses: newrelic/repolinter-action@v1
with:
output_name: 'NR1 library deprecation issues'
label_name: 'nr1-deprecations'
label_color: '800000'
# FIXME: Replace with the appropriate ruleset URL
config_url: https://raw.githubusercontent.com/newrelic/.github/main/repolinter-rulesets/nr1-lib-deprecations.yml
output_type: issue