-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.11 KB
/
main.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
name: update
on:
schedule:
- cron: '5 * * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone Target
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
path: target
- name: Clone Source
uses: actions/checkout@v3
with:
repository: ${{ secrets.PROJECT_SOURCE_GIT_URL }}
ref: master
token: ${{ secrets.TOKEN }}
path: source
submodules: 'true'
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v3.0.3
with:
dotnet-version: 6.0
- name: Execute Update
run: |
dotnet run --project source
cd target
git config --local user.email "m67186636@gmail.com"
git config --local user.name "m67186636"
git commit -a -m "Update All Exchange Rate"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
directory: target