Update hsp-iit.yml (#239) #397
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Outside Collaborators | |
on: | |
push: | |
branches: | |
- 'master' | |
paths: | |
- "groups/*.yml" | |
- "groups/*.yaml" | |
- "repos/*.yml" | |
- "repos/*.yaml" | |
workflow_dispatch: | |
concurrency: | |
group: outside_collaborators_update | |
cancel-in-progress: true | |
jobs: | |
Update: | |
name: "Update" | |
runs-on: ubuntu-latest | |
environment: outside_collaborators_environment | |
steps: | |
- name: Install Dependencies | |
run: | | |
sudo gem install octokit yaml | |
- name: Set Env Variables | |
run: | | |
echo "OUTSIDE_COLLABORATORS_GITHUB_ORG=${{ github.repository_owner }}" >> ${GITHUB_ENV} | |
echo "OUTSIDE_COLLABORATORS_GITHUB_TOKEN=${{ secrets.OUTSIDE_COLLABORATORS_TOKEN }}" >> ${GITHUB_ENV} | |
- uses: actions/checkout@main | |
- name: Run Handler | |
run: | | |
cd scripts | |
./outside-collaborators-handler.rb | |