chore(deps): update peter-evans/create-pull-request action to v7 #67
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
# Copyright © Michal Čihař <[email protected]> | |
# | |
# SPDX-License-Identifier: CC0-1.0 | |
# This file is maintained in https://github.com/WeblateOrg/meta/ | |
name: yarn update | |
on: | |
push: | |
branches: | |
- renovate/** | |
- main | |
paths: | |
- .github/workflows/yarn-update.yml | |
- scripts/yarn-update | |
- scripts/yarn/* | |
- client/* | |
permissions: | |
contents: read | |
jobs: | |
yarn-update: | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- run: ./scripts/yarn-update | |
- run: | | |
if [ -d client ] ; then | |
cd client | |
yarn install | |
yarn build | |
cd .. | |
fi | |
- name: Update branch | |
if: github.ref != 'refs/heads/main' | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: 'chore(js): update vendored libraries' | |
- name: Create Pull Request | |
if: github.ref == 'refs/heads/main' | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
branch: create-pull-request/yarn-update | |
title: 'chore(js): update vendored libraries' | |
commit-message: 'chore(js): update vendored libraries' | |
labels: | | |
dependencies | |
automerge |