-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 1.02 KB
/
test-github-auth.yml
File metadata and controls
34 lines (29 loc) · 1.02 KB
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
name: Test GitHub authentication for git@github.com:NetLogo/docs.git
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
name: Test GitHub authentication for git@github.com:NetLogo/docs.git
steps:
- name: Setup SSH
uses: ./.github/actions/setup-ssh
with:
ssh-private-key: ${{ secrets.DOCS_DEPLOY_PRIVATE_KEY }}
- name: Checkout and attempt to push a new branch
shell: bash
run: |
git config --global user.name "HELIO CI"
git config --global user.email "helio-noreply@netlogo.org"
git clone git@github.com:NetLogo/docs.git
cd docs
git checkout -b test-github-auth-branch
touch test-github-auth-file.txt
git add test-github-auth-file.txt
git commit -m "Testing GitHub authentication"
git push origin test-github-auth-branch
- name: Delete Test Branch
shell: bash
run: |
cd docs
git push origin --delete test-github-auth-branch