Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
28 lines
1.2 KiB
YAML
28 lines
1.2 KiB
YAML
name: Feature Toggle Cleanup
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
# * is a special character in YAML so you have to quote this string
|
|
- cron: '30 10 * * *'
|
|
jobs:
|
|
feature-toggle-cleanup:
|
|
runs-on: ubuntu-latest
|
|
# This check is here to prevent this workflow from running on forks.
|
|
if: github.repository == 'grafana/grafana'
|
|
steps:
|
|
- name: Check out the code
|
|
uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20.x"
|
|
- run: npm install csv-parse
|
|
- name: Parse CVS file to see which Feature Toggles should be notified about
|
|
id: parse-csv-file
|
|
uses: actions/github-script@v7
|
|
env:
|
|
FEATURE_TOGGLES_CSV_FILE_PATH: "pkg/services/featuremgmt/toggles_gen.csv"
|
|
with:
|
|
script: |
|
|
const { default: cleanupFeatureFlags } = await import('${{ github.workspace }}/.github/workflows/scripts/feature-toggle-cleanup/feature-toggle-cleanup.mjs')
|
|
await cleanupFeatureFlags({github, context, core}) |