-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (37 loc) · 1.3 KB
/
push-renovate-pob_root.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Commit changes on @pob/root update
on:
push:
branches:
- "renovate/pob-root"
- "renovate/pob-root-**"
jobs:
run-install-and-commit-modified-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
- name: Enable Corepack
run: corepack enable
- name: Install Dependencies
# no immutable here
run: yarn install
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
- name: Run pob-root-postinstall
run: yarn run pob-root-postinstall
- name: Run pob update
run: npx pob update --force
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
- name: Check for added or modified files
id: git-check-modified
run: echo ::set-output name=modified::$(if [[ -z $(git status -s) ]]; then echo "false"; else echo "true"; fi)
- name: Commit report
if: steps.git-check-modified.outputs.modified == 'true'
run: |
git add .
git -c user.name="Christophe Hurpeau" \
-c user.email="[email protected]" \
commit -m "chore: update pob root" --author="github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
git push --no-verify