Skip to content

Update

Update #1135

Workflow file for this run

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@692973e3d937129bcbf40652eb9f2f61becf3332 # 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@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6
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