-
Notifications
You must be signed in to change notification settings - Fork 189
68 lines (54 loc) · 1.96 KB
/
matrix-update.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Compatibility matrix update
on:
workflow_call: {}
env:
NODE_VERSION: "20.11.1"
PNPM_VERSION: "8.15.1"
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: ${{ env.PNPM_VERSION }}
- name: Setup Node.js v18
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install pnpm Dependencies
run: pnpm install --frozen-lockfile --filter ./tools/compatibility-matrix-automation
- name: Download Output Files
uses: actions/download-artifact@v3
with:
name: out
path: out
- name: Run Update Script
run: |
cd tools/compatibility-matrix-automation
TEST_OUTPUT_FOLDER=../../out npx update-matrix
- name: Create a PR
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
title: "chore(docs): compatibility matrix update"
branch: "github-actions/updating-matrix"
base: main
add-paths: docs/**
commit-message: |-
Updates the [Compatibility Matrix](https://www.winglang.io/docs/standard-library/compatibility-matrix)
[Workflow Run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
------
*Automatically created via the "matrix-update" workflow*
body: |-
chore(docs): update compatibility matrix
[Workflow Run]: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
------
*Automatically created via the "matrix-update" workflow*
author: monabot <monabot@monada.co>
committer: monabot <monabot@monada.co>
signoff: true
labels: 📚 documentation
delete-branch: true