diff --git a/.github/labels.yaml b/.github/labels.yaml new file mode 100644 index 0000000..8429d34 --- /dev/null +++ b/.github/labels.yaml @@ -0,0 +1,14 @@ +- name: 'area/compute' + color: 'C5DEF5' + +- name: 'area/iam' + color: 'C5DEF5' + +- name: 'area/networking' + color: 'C5DEF5' + +- name: 'area/physical' + color: 'C5DEF5' + +- name: 'area/storage' + color: 'C5DEF5' diff --git a/.github/workflows/sync-labels.yaml b/.github/workflows/sync-labels.yaml new file mode 100644 index 0000000..283b8b6 --- /dev/null +++ b/.github/workflows/sync-labels.yaml @@ -0,0 +1,23 @@ +name: Sync labels +on: + workflow_dispatch: + +permissions: + issues: write + +jobs: + labels: + runs-on: ubuntu-latest + + steps: + - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f + with: + node-version: 18.x + - run: npm install -g github-label-sync@v3.0.0 + shell: bash + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 + with: + sparse-checkout: .github/labels.yaml + - run: | + github-label-sync --access-token ${{ github.token }} --labels .github/labels.yaml ${{ github.repository }} + shell: bash