-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rabah Abdul Khalek
authored and
Rabah Abdul Khalek
committed
Feb 27, 2024
1 parent
c1a192a
commit e92a21d
Showing
2 changed files
with
29 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -29,4 +29,29 @@ jobs: | |
uses: 'google-github-actions/setup-gcloud@v2' | ||
|
||
- name: 'Use gcloud CLI' | ||
run: 'gcloud info' | ||
run: 'gcloud info' | ||
|
||
- name: Run the Giskard report 🐢 | ||
id: giskard_scan | ||
run: | | ||
python report.py | ||
output=$(find report -iname "*.md" -exec basename {} .md ';') | ||
echo "::set-output name=report_name::$output" | ||
- name: Extract branch name 🌲 | ||
shell: bash | ||
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | ||
id: extract_branch | ||
|
||
- name: Upload the report 🤖 | ||
id: extract_sha | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
mkdir -p reports | ||
cp ${{ steps.giskard_scan.outputs.report_name }} reports/. | ||
cp reports/${{ steps.giskard_scan.outputs.report_name }} reports/latest.md | ||
git add reports | ||
git commit -m "🤖 github-bot: Updated Reports" | ||
git push | ||
echo "::set-output name=sha::$(git rev-parse HEAD)" |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
f = open("demo_report.md", "w") | ||
f.write("Hello World!") | ||
f.close() |