-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.39 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
45
46
47
48
# This is a basic workflow to help you get started with Actions
# Doc: https://github.com/dmnemec/copy_file_to_another_repo_action
name: geo-CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
copy-file:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
# get the date to use as a commit
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
# UIST DATASETS UPDATED
# update the repository with the dataset
- name: Pushes to geo-dataset
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_file: 'out/dataset.json'
destination_repo: 'geo-conf/geo-dataset-uist'
destination_folder: ''
user_email: '[email protected]'
user_name: 'makinteract'
commit_message: ${{ steps.date.outputs.date }}
- name: Pushes the source files of the dataset
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_file: 'json'
destination_repo: 'geo-conf/geo-dataset-uist'
destination_folder: 'raw'
user_email: '[email protected]'
user_name: 'makinteract'
commit_message: ${{ steps.date.outputs.date }}