Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 0ff6bde

Browse files
authored
chore(workflows): minor fixes and changes on workflows (#2869)
1 parent 9886650 commit 0ff6bde

File tree

3 files changed

+22
-9
lines changed

3 files changed

+22
-9
lines changed

.github/workflows/cleanup-staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permissions:
88
contents: read
99

1010
jobs:
11-
build:
11+
cleanup-staging:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Git Checkout

.github/workflows/firebase-deployment.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ on:
66
- main
77

88
jobs:
9-
build_and_deploy:
9+
build-and-deploy:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Git Checkout
1313
uses: actions/checkout@v2
14+
with:
15+
ref: main
1416

1517
- name: Setup Node.js
1618
uses: actions/setup-node@v3

.github/workflows/sync-api.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,37 @@ name: Syncing API docs
22

33
on:
44
schedule:
5-
- cron: "0 * * * *"
5+
- cron: '0 0 * * *'
66

77
jobs:
8-
sync_api_docs:
8+
sync-api-docs:
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: Checkout project
11+
- name: Git Checkout
1212
uses: actions/checkout@v3
13+
with:
14+
ref: main
15+
16+
- name: Setup Pages
17+
uses: actions/configure-pages@v2
1318

14-
- name: Set up node
19+
- name: Setup Node.js
1520
uses: actions/setup-node@v3
21+
with:
22+
node-version-file: '.nvmrc'
23+
cache: 'npm'
24+
25+
- name: Install NPM packages
26+
run: npm ci
1627

17-
- name: "Retrieve Sync API specifications"
28+
- name: 'Retrieve Sync API specifications'
1829
shell: bash
1930
run: |
2031
npm run sync-api
2132
2233
- name: Check for file changes & commit files
2334
uses: stefanzweifel/git-auto-commit-action@v4
2435
with:
25-
commit_message: "chore(api): sync auto-generated docs"
36+
commit_message: 'chore(api): sync auto-generated docs'
2637
github_token: ${{ github.token }}
27-
branch: "main"
38+
branch: 'main'

0 commit comments

Comments
 (0)