Skip to content

ISO10383

ISO10383 #122

Workflow file for this run

name: ISO10383
on:
schedule:
- cron: '0 10 11 JUN *' # 2024-06-11
- cron: '0 10 09 JUL *' # 2024-07-09
- cron: '0 10 13 AUG *' # 2024-08-13
- cron: '0 10 10 SEP *' # 2024-09-10
- cron: '0 10 15 OCT *' # 2024-10-15
- cron: '0 10 13 NOV *' # 2024-11-13
- cron: '0 10 10 DEC *' # 2024-12-10
concurrency:
group: iso10383
cancel-in-progress: true
jobs:
update-csv:
name: Update CSV
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.repository.default_branch }}
- name: Download dependencies
uses: bahmutov/npm-install@v1
- 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 "[email protected]"
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]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download dependencies
uses: bahmutov/npm-install@v1
- 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 }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}