diff --git a/.github/workflows/update-iso.yml b/.github/workflows/update-iso.yml new file mode 100644 index 0000000..d21d609 --- /dev/null +++ b/.github/workflows/update-iso.yml @@ -0,0 +1,39 @@ +name: Update ISO 4217 Data + +on: + schedule: + - cron: "0 0 * * 1" # Runs every Monday at midnight UTC + workflow_dispatch: # Allows manual triggering of the workflow + +jobs: + update-iso: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install Bun + uses: oven-sh/setup-bun@v1 + with: + bun-version: latest + + - name: Install dependencies + run: bun install + + - name: Run ISO script + run: bun run iso + + - name: Commit changes and create PR + uses: peter-evans/create-pull-request@v7 + with: + branch: update-iso-4217-data + commit-message: "chore: update ISO 4217 data" + title: Update ISO 4217 Data + body: | + This PR updates the ISO 4217 data by running the `iso` script. + + Please review and merge it if everything looks good. + + **Todo:** + - [ ] Update tests diff --git a/.gitignore b/.gitignore index 099ae14..911fcb5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules package-lock.json - +bun.lockb +bun.lock