forked from Testing-Forecast-Actions/TEST_2
-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (63 loc) · 2.32 KB
/
test_pr_wf.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: TestPrWf
on:
workflow_dispatch:
jobs:
test_job:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: trace step
run: echo "Tracing test step"
# Checkout the data repository
# -------------------------------------------
# - name: checkout data repo
# uses: actions/checkout@v3
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# repository: 'Testing-Forecast-Actions/TEST_2'
# ref: 'master'
# path: './repo/'
- name: checkout data repo
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- run: gh repo set-default Testing-Forecast-Actions/TEST_2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
git checkout master
gh repo sync Chappi74/MyTESTRepo -b master
git pull
git config --global user.email "[email protected]"
git config --global user.name "Chappi74"
git checkout -b my-branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: wget
uses: wei/wget@v1
with:
args: -O test.csv google.com
# - run: |
# git add --all
# git commit -m "Commit comment"
# git push -u origin my-branch1
# gh pr create --head my-branch1 --base master --title 'test' --body 'running test'
# # git push
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: 'Testing commit'
new_branch: my-branch
- name: Open PR
run: gh pr create --head Chappi74:my-branch1 --base master --title 'test' --body 'running test'
env:
GH_TOKEN: ${{ github.token }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Open the pull requests
# run: |
# echo "Opening PR"
# gh pr create --title 'Test merge' --body 'Created by Github action'
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}