Sync the backup with the API #56
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: Sync the backup with the API | |
on: | |
schedule: | |
- cron: '0 0 * * 0' | |
workflow_dispatch: | |
jobs: | |
sync: | |
name: Sync and create PR | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out π | |
uses: actions/checkout@v4.2.2 | |
- name: Set up Python π | |
uses: actions/setup-python@v5.3.0 | |
with: | |
cache: pip | |
- name: Install the package π¦ | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -e . | |
- name: Run the `sync` command π | |
run: | |
gitmojis sync | |
- name: Create pull request π | |
uses: peter-evans/create-pull-request@v7.0.5 | |
with: | |
token: ${{ secrets.CREATE_PR_ACTION_TOKEN }} | |
commit-message: π± Update the backup file with the Gitmoji API data | |
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com> | |
branch: sync-backup-file-with-api | |
branch-suffix: short-commit-hash | |
title: π± Update the backup file with the Gitmoji API data | |
body: | | |
## Description | |
The backup file has been updated to represent the current state of the official Gitmoji API. π | |
βΉοΈ Automated changes by [Create Pull Request](https://github.com/peter-evans/create-pull-request) action by Peter Evans. | |
assignees: paduszyk | |
labels: chores |