Skip to content

repo list

repo list #54

Workflow file for this run

on:
repository_dispatch:
workflow_dispatch:
schedule:
- cron: "51 2 * * *"
jobs:
createPullRequest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup
id: setup
run: |
echo "title=devdoc: update repo list $(date -u +"%Y-%m-%d")" >> $GITHUB_OUTPUT
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
- name: Update repo list
env:
# avoid rate limit
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh api --paginate /orgs/nix-community/repos --jq '.[].html_url' | sort > devdoc/repo_list
- uses: peter-evans/create-pull-request@v5
id: update
with:
branch: update-repo-list
commit-message: ${{ steps.setup.outputs.title }}
title: ${{ steps.setup.outputs.title }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Enable Automerge
if: steps.update.outputs.pull-request-operation == 'created'
run: gh pr merge --rebase --auto "${{ steps.update.outputs.pull-request-number }}"
env:
GH_TOKEN: ${{ secrets.GH_TOKEN_FOR_UPDATES }}