-
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.
Showing
1 changed file
with
16 additions
and
12 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 |
---|---|---|
|
@@ -94,21 +94,25 @@ jobs: | |
# Print the contents of the executed notebook | ||
cat /home/runner/work/EthAIAuditHub/EthAIAuditHub/examples/output_notebook.ipynb | ||
# Add a new step to commit and push the changes | ||
# Add a new step to commit and push the changes | ||
- name: Commit and Push Changes | ||
run: | | ||
git config --local user.name actions-user | ||
# name=git config --local user.name actions-user | ||
git config --local user.email "[email protected]" | ||
# Add only the necessary file(s) to the commit | ||
git add /home/runner/work/EthAIAuditHub/EthAIAuditHub/examples/output_notebook.ipynb | ||
|
||
# Amend the commit message if needed | ||
git commit --amend -m "Audit Report $(date)" | ||
|
||
# Force push the changes | ||
git push origin main -f | ||
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} | ||
- name: Persist Logs | ||
run: | | ||
mkdir -p /home/runner/work/EthAIAuditHub/EthAIAuditHub/automation/artifacts | ||
cp /home/runner/work/EthAIAuditHub/EthAIAuditHub/examples/output_notebook.ipynb /home/runner/work/EthAIAuditHub/EthAIAuditHub/automation/artifacts/ | ||
if: ${{ always() }} | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v2 | ||
if: always() | ||
with: | ||
name: "Audit Report $(date)" | ||
path: /home/runner/work/EthAIAuditHub/EthAIAuditHub/automation/artifacts | ||
|
||
|
||
|
||
build-r: | ||
|