Skip to content

Commit

Permalink
added demo report
Browse files Browse the repository at this point in the history
  • Loading branch information
Rabah Abdul Khalek authored and Rabah Abdul Khalek committed Feb 27, 2024
1 parent c1a192a commit e92a21d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
3 changes: 3 additions & 0 deletions report.py
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()

0 comments on commit e92a21d

Please sign in to comment.