Skip to content

Added Arianna Pietrasanta #215

Added Arianna Pietrasanta

Added Arianna Pietrasanta #215

name: Check Automated Repositories
on:
pull_request_target:
branches:
- 'master'
paths:
- "groups/*.yml"
- "groups/*.yaml"
- "repos/*.yml"
- "repos/*.yaml"
workflow_dispatch:
concurrency:
group: outside_collaborators_check_repos
cancel-in-progress: true
jobs:
Check:
name: "Check"
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
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Run Handler
run: |
cd scripts
./check-automated-repositories.rb