Skip to content

Commit 00e3797

Browse files
feat(ci): added workflow for automated create-o2s-app dependencies update
1 parent e04982c commit 00e3797

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Release packages
2+
permissions:
3+
actions: write
4+
contents: write
5+
packages: write
6+
checks: read
7+
pull-requests: write
8+
deployments: write
9+
10+
env:
11+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
12+
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
13+
on:
14+
pull_request:
15+
types:
16+
- closed
17+
branches:
18+
- 'changeset-release/main'
19+
jobs:
20+
pre_job:
21+
runs-on: ubuntu-latest
22+
outputs:
23+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
24+
steps:
25+
- id: skip_check
26+
uses: fkirc/skip-duplicate-actions@v5
27+
with:
28+
# All of these options are optional, so you can remove them if you are happy with the defaults
29+
concurrent_skipping: 'outdated_runs'
30+
# paths_ignore: '["**/README.md", ".github/**"]'
31+
cancel_others: 'true'
32+
33+
prepare-o2s-app:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Checkout code
37+
uses: actions/checkout@v3
38+
with:
39+
fetch-depth: 2
40+
ref: ${{ needs.check-app.outputs.branch }}
41+
42+
- name: Prepare Environment
43+
uses: ./.github/actions/setup-env
44+
timeout-minutes: 10
45+
with:
46+
repo-token: ${{ secrets.GITHUB_TOKEN }}
47+
48+
- name: Create Pull Request
49+
uses: peter-evans/create-pull-request@v7
50+
with:
51+
title: Update create-o2s-app script
52+
commit-message: 'feat(create-o2s-app): update dependencies'
53+
branch: create-o2s-app/patch
54+
delete-branch: true
55+
base: create-o2s-app/base
56+
57+
- uses: actions/checkout@v4
58+
with:
59+
ref: create-o2s-app/patch
60+
61+
- name: Update api-harmonization dependencies
62+
run: npm install @o2s/framework@latest @o2s/utils.logger@latest @o2s/integrations.mocked --workspace=@o2s/api-harmonization
63+
64+
- name: Commit changes
65+
uses: EndBug/add-and-commit@v9
66+
with:
67+
message: 'feat(create-o2s-app): update dependencies'

0 commit comments

Comments
 (0)