-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (32 loc) · 1.07 KB
/
update_api_versions.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
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 }}