Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cctan777 committed Dec 5, 2022
1 parent fb46c6a commit d0a9213
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/create-badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,34 @@ jobs:
token: ${{ secrets.GH_TOKEN }}
filename: my-badge
label: my
message: badge
message: badge

Upload_SVG_Badge:
name: Upload SVG badge
runs-on: ubuntu-latest

steps:

- name: Checkout wiki
uses: actions/checkout@v3
with:
repository: ${{ github.event.repository.name }}.wiki

- name: Check contents of repo wiki
run: ls -al

- name: create new file from badge
run: cat NoiseOptimiser-coverage-badge-svg > new-coverage-badge.svg

- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "Add changes"
- name: Push changes to wiki repo
uses: ad-m/github-push-action@master
with:
repository: ${{ github.event.repository.name }}.wiki
github_token: ${{ secrets.GH_TOKEN }}
21 changes: 21 additions & 0 deletions NoiseOptimiser-coverage-badge-auto.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions NoiseOptimiser-coverage-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d0a9213

Please sign in to comment.