Skip to content

Commit

Permalink
Save artifact in separate branch instead of as zip.
Browse files Browse the repository at this point in the history
  • Loading branch information
SLiV9 committed Jan 14, 2024
1 parent 5eec064 commit 66cb4c6
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main
- ghworkflow
- gh-workflow
workflow_dispatch:

env:
Expand All @@ -25,11 +25,17 @@ jobs:
uses: djdefi/cloc-action@6
with:
options: --json --out cloc-report.json --read-lang-def support/cloc_penne_definitions.txt src/ tests/ examples/ core/ vendor/
- name: Archive CLOC arifact
uses: actions/upload-artifact@v3
- name: Commit to gh-arifacts
run:
git config --local user.name 'github-actions[bot]'
git config --local user.email 'github-actions[bot]@users.noreply.github.com'
git commit -m "Latest cloc report" cloc-report.json
- name: Push to gh-artifacts
uses: ad-m/[email protected]
with:
name: cloc-report
path: cloc-report.json
branch: gh-artifacts
force: true
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Restore LLVM
id: restore-llvm
uses: actions/cache/restore@v3
Expand Down

0 comments on commit 66cb4c6

Please sign in to comment.