-
Notifications
You must be signed in to change notification settings - Fork 14
43 lines (42 loc) · 1.29 KB
/
test.yaml
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
name: Test Workflow
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Hub Test Script
shell: bash
run: |
REPO_PATH=$(pwd)
cd ..
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
export PATH="$(pwd)/bin:$PATH"
mkdir ~/.config
cat >>~/.config/hub <<EOF
github.com:
- user: $GITHUB_ACTOR
EOF
tail ~/.config/hub
cat >>~/.netrc <<EOF
machine github.com
login $GITHUB_ACTOR
password $GITHUB_TOKEN
EOF
git config --global hub.protocol https
git config --global user.email "Jonathan.Leitschuh@gmail.com"
git config --global user.name "Jonathan Leitschuh"
hub clone jlleitschuh/bad-pom
cd bad-pom
git checkout -b test-fix
echo "A test update" > TEST.md
git add .
git commit -am "A test commit"
echo "Attempting Push"
git push origin test-fix
hub pull-request --file "$REPO_PATH/PR_MESSAGE.md"
env:
GITHUB_TOKEN: ${{ secrets.ENHANCED_GITHUB_TOKEN }}