-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (36 loc) · 1.19 KB
/
upgrade-backstage.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
name: Upgrade Backstage
on:
schedule:
- cron: '0 1 1 * *' # 1 am UTC on 1st day of every month
workflow_dispatch: {}
jobs:
upgrade:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Upgrade plugins
run: |
yarn install
yarn backstage-cli versions:bump
- name: Commit changes
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git checkout -b deps/upgrade-backstage
git diff-index --quiet HEAD || git commit -m "chore(deps): Upgrade Backstage versions"
- name: Test changes
run: |
yarn install
yarn ci
env:
CI: true
continue-on-error: true
- name: Push changes
run: |
git push -o merge_request.create -o merge_request.draft \
-o merge_request.target=main -o merge_request.title="Upgrade Backstage versions" \
-o merge_request.description="Upgrade Backstage dependencies" -u origin deps/upgrade-backstage