Skip to content

add this repo

add this repo #18

# Assign labels from json definition to all repos
# This uses https://github.com/Financial-Times/github-label-sync
# The GITHUB_TOKEN only grants access to the current directory.
# Check https://github.com/orgs/community/discussions/46566
# if they have added a feature to allow access to all organization repositories.
# Until then we use the ISSUE_WRITE_TOKEN which was generated by pylhctokens,
# but is only valid for a limited amount of time (1 year).
name: Assign labels to all repos
on: # Runs on any push event in a PR or any push event to master
push:
branches:
- 'issue_redesign'
defaults:
run:
shell: bash
jobs:
assign-labels:
permissions: # permissions for the GITHUB_TOKEN
issues: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install github-label-sync
run: |
npm install -g github-label-sync
- name: Assign labels into all repos
working-directory: ./labels # labels.json is default filename for github-label-sync
env:
# GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACCESS_TOKEN: ${{ secrets.ISSUE_WRITE_TOKEN }}
run: |
github-label-sync pylhc/irnl_rdt_correction
github-label-sync pylhc/optics_functions
github-label-sync pylhc/.github