-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save artifact in separate branch instead of as zip.
- Loading branch information
Showing
1 changed file
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
push: | ||
branches: | ||
- main | ||
- ghworkflow | ||
- gh-workflow | ||
workflow_dispatch: | ||
|
||
env: | ||
|
@@ -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 | ||
|