Skip to content

Quarterly Api Versions Update #4

Quarterly Api Versions Update

Quarterly Api Versions Update #4

name: Quarterly Api Versions Update
on:
schedule:
# Schedule to run at the end of every quarter
- cron: '0 0 1 1,4,7,10 *'
workflow_dispatch:
jobs:
update-version:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Change to API directory
run: cd packages/api
- name: Install API dependencies
run: npm install
working-directory: ./packages/api
- name: Update Version Enum and Bump Patch Version
run: npm run update-versions
working-directory: ./packages/api
- name: Create Pull Request
run: |
gh pr create \
--body "Automated changes to update the AvailableVersions enum and bump the patch version in the API package." \
--title "chore: Quarterly API Version Update" \
--head "versions-update-${{ github.sha }}" \
--base "main"
--token ${{ secrets.GITHUB_TOKEN }}