This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
Workflow file for this run
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 metainfo on release | |
on: | |
release: | |
types: | |
- published | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 # Install pnpm using packageManager key in package.json | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: pnpm i | |
- name: Update metainfo | |
run: pnpm updateMeta | |
- name: Commit and merge in changes | |
run: | | |
git config user.name "github-actions[bot]" | |
git config user.email "60797172+github-actions[bot]@users.noreply.github.com" | |
git checkout -b ci/meta-update | |
git add meta/io.github.verticalsync.sunroof.metainfo.xml | |
git commit -m "Insert release changes for ${{ github.event.release.tag_name }}" | |
git push origin ci/meta-update | |
gh pr create -B main -H ci/meta-update -t "Metainfo for ${{ github.event.release.tag_name }}" -b "This PR updates the metainfo for release ${{ github.event.release.tag_name }}. @verticalsync" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |