-
Notifications
You must be signed in to change notification settings - Fork 0
96 lines (80 loc) · 2.51 KB
/
iso10383.yml
File metadata and controls
96 lines (80 loc) · 2.51 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: ISO10383
on:
schedule:
# https://www.iso20022.org/market-identifier-codes
# These are scheduled one day _after_ the publication date
- cron: "0 10 14 OCT *" # 2025-10-14
- cron: "0 10 11 NOV *" # 2025-11-11
- cron: "0 10 09 DEC *" # 2025-12-09
concurrency:
group: iso10383
cancel-in-progress: true
jobs:
update-csv:
name: Update CSV
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
ref: ${{ github.event.repository.default_branch }}
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version-file: ".nvmrc"
- name: Enable Corepack
run: corepack enable
- name: Download dependencies
run: yarn install --immutable
- name: Download CSV
run: |
cd packages/iso-10383
curl -o src/lib/specifications/iso10383.csv https://www.iso20022.org/sites/default/files/ISO10383_MIC/ISO10383_MIC.csv
yarn generate
- name: Create changeset
run: |
cat <<EOF > .changeset/update-iso10383-specifications.md
---
'@sebspark/iso-10383': minor
---
Update ISO10383 specifications.
EOF
- name: Format generated code
run: yarn format
- name: Push changes
env:
CI_COMMIT_MESSAGE: "chore: update ISO-10383 specifications"
CI_COMMIT_AUTHOR: 📈 ISO10383 Bot
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "username@users.noreply.github.com"
git add .
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
git push
changeset:
name: Create Release Pull Request or Publish to NPM
runs-on: ubuntu-latest
needs: [update-csv]
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version-file: ".nvmrc"
- name: Enable Corepack
run: corepack enable
- name: Download dependencies
run: yarn install --immutable
- name: Create Changeset PR
uses: changesets/action@v1
with:
publish: npm run release
commit: "chore(release): update versions"
title: "chore(release): update versions"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}