Skip to content

Commit

Permalink
ci: refactor sync into sync-readme
Browse files Browse the repository at this point in the history
  • Loading branch information
avakarev committed Dec 20, 2022
1 parent 05791a9 commit e0ce5c5
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/sync.yml → .github/workflows/sync-readme.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,23 @@
name: Sync Workflow
on:
push:
branches:
- main
paths:
- index.yaml
- gatus-*.tgz
- README.md
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
cp -f README.md ${{ runner.temp }}/README.md
cp -f index.yaml ${{ runner.temp }}/index.yaml
cp -rf gatus-*.tgz ${{ runner.temp }}/
- uses: actions/checkout@v3
with:
ref: gh-pages
- run: |
cp -f ${{ runner.temp }}/README.md .
cp -f ${{ runner.temp }}/index.yaml .
cp -rf ${{ runner.temp }}/gatus-*.tgz .
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
git add README.md
git add index.yaml
git add gatus-*.tgz
git commit --signoff -m "Sync artefacts from main"
git commit --signoff -m "Sync README.md from main"
git push

0 comments on commit e0ce5c5

Please sign in to comment.