From c3398e8931428f6999e452ecbf02a8217e3f54a9 Mon Sep 17 00:00:00 2001 From: Xiaolu Dai <31124698+saragluna@users.noreply.github.com> Date: Mon, 18 Apr 2022 19:34:25 +0800 Subject: [PATCH] Create sync-label-from-azsdk-repo.yml --- .github/workflows/sync-label-from-azsdk-repo.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/sync-label-from-azsdk-repo.yml diff --git a/.github/workflows/sync-label-from-azsdk-repo.yml b/.github/workflows/sync-label-from-azsdk-repo.yml new file mode 100644 index 00000000..a89509e9 --- /dev/null +++ b/.github/workflows/sync-label-from-azsdk-repo.yml @@ -0,0 +1,16 @@ +name: Sync Labels +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Fetch Labels + run: curl https://api.github.com/repos/Azure/azure-sdk-for-java/labels\?per_page\=1000 | jq -c '.[] | select(.name | contains("spring"))' | jq -s >> labels.json + + - name: Label Sync + uses: EndBug/label-sync@v2.1.0 + with: + config-file: ./labels.json + dry-run: false