-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.yml
46 lines (42 loc) · 1.36 KB
/
example.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
41
42
43
44
45
46
name: Push to Artifact Repos
on:
push:
branches:
- master
paths:
- "tutorial/**"
jobs:
check:
name: Bluehawk Check Tutorials
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v1
with:
node-version: 15.x
- run: npx bluehawk check -i "*.md" -i "*.properties" -i "*.lock" tutorial
push:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: React Native
uses: mongodb/push-to-artifact-repo
with:
email: some-machine-user@example.com
name: Machine User
states: start final
source: ./tutorial/rn
toRepo: https://${{ secrets.TUTORIAL_REPO_ACCESS_TOKEN }}@github.com/some-org/tutorial-rn.git
commitMessage: Update
Initiated by ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}
- name: Swift
uses: mongodb/push-to-artifact-repo
with:
email: some-machine-user@example.com
name: Machine User
branch: main
source: ./tutorial/swift
toRepo: https://${{ secrets.TUTORIAL_REPO_ACCESS_TOKEN }}@github.com/some-org/tutorial-swift.git
commitMessage: Update
Initiated by ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}