Don't fail if GitHub issue can't be raised #71
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 communities | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
run: | |
name: Update communities | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: 'fnic-lemmy/bestofbot' | |
fetch-depth: 0 | |
path: './bestofbot/' | |
- uses: actions/checkout@v4 | |
with: | |
repository: 'fnic-lemmy/lemmy-directory' | |
path: './directory/' | |
- run: | | |
cd ./directory | |
./scripts/directory_to_json.py | |
cp ./lists/*.json ../bestofbot/configs/ | |
rm ../bestofbot/configs/directory.json | |
- name: Create PR | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
token: ${{ secrets.TOKEN }} | |
path: './bestofbot' | |
branch: 'community-updates' | |
base: 'main' | |
commit-message: '[automated] Update community lists' | |
title: '[automated] Update community lists' | |
body: 'Update community lists generated automatically' | |
delete-branch: true |