.github/workflows/reposettings.yaml #278
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
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '0 5 * * *' # Everyday at 05:00 | |
jobs: | |
reposettings: | |
name: Apply GH repo settings | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Read reposettings.yml | |
run: | | |
echo 'REPOSETTINGS_YML<<EOF' >> $GITHUB_ENV | |
cat reposettings.yml >> $GITHUB_ENV | |
echo 'EOF' >> $GITHUB_ENV | |
- uses: txqueuelen/reposettings@v1 | |
with: | |
github_token: ${{ secrets.COREINT_BOT_TOKEN }} | |
config: ${{ env.REPOSETTINGS_YML }} |