Skip to content

Update

Update #1185

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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # 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