Update #1225
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 | |
on: | |
schedule: | |
- cron: '0 12 * * *' | |
permissions: | |
repository-projects: read | |
pull-requests: write | |
contents: write | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Authenticate GitHub CLI | |
run: echo ${{github.token}} | gh auth login --with-token | |
- name: Get Gitmoji Release Information | |
id: release | |
run: | | |
output=$(gh release view --repo carloscuesta/gitmoji --json tagName,tarballUrl) | |
tarball=$(echo ${output} | jq -r .tarballUrl) | |
version=$(echo ${output} | jq -r .tagName) | |
echo "version=${version}" >> ${GITHUB_OUTPUT} | |
echo "tarball=${tarball}" >> ${GITHUB_OUTPUT} | |
- name: Update gitmojis.json | |
run: >- | |
curl -L ${{ steps.release.outputs.tarball }} | |
| tar --extract --gunzip --no-anchored | |
--transform='flags=r;s|packages/gitmojis/src/gitmojis.json|gitmojis.json|' | |
--directory=${{github.workspace}}/autoload | |
--strip-components=1 | |
gitmojis.json | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7 | |
with: | |
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
branch: github-actions/gitmoji.dev/gitmoji | |
delete-branch: true | |
commit-message: Bump gitmojis.json to ${{ steps.release.outputs.version }} | |
title: ⬆ Bump gitmojis.json to ${{ steps.release.outputs.version }} | |
body: | | |
Bumps [gitmoji](https://github.com/carloscuesta/gitmoji) to ${{steps.release.outputs.version}} | |
See the [release notes][1] for more information. | |
[1]: https://github.com/carloscuesta/gitmoji/releases/tag/${{steps.release.outputs.version}} | |
labels: dependencies,upstream | |
assignees: bruxisma | |
reviewers: bruxisma |