Skip to content

Commit

Permalink
Merge 79d90d2 into bff3b65
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Zimmermann authored Apr 26, 2022
2 parents bff3b65 + 79d90d2 commit 257e1d3
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/pull-request-checks-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: PR checks Test

on:
pull_request:
branches: [ main ]

jobs:

dummy:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.x' ]

steps:
- uses: actions/checkout@v3
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: "Check if coverage badge file existence"
id: check_files
uses: andstor/file-existence-action@v1
with:
files: "docs/test.txt"

- name: Generate file
run: touch docs/test.txt

- name: Commit files
if: steps.check_files.outputs.files_exists == 'false'
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add --force docs
git commit -m "Add test file"
- name: Push
run: ls -la docs && git status && cat .git/config

- name: Push changes
uses: ad-m/github-push-action@4200574c0f7956ff32ffe9fe6de92faa3cbc9174
with:
branch: ${{ github.head_ref }}
ssh: true
force: true
Empty file added docs/test.txt
Empty file.

0 comments on commit 257e1d3

Please sign in to comment.