Skip to content

Commit

Permalink
Remove additional features
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Feb 21, 2025
1 parent ea565e8 commit 544e117
Showing 1 changed file with 0 additions and 103 deletions.
103 changes: 0 additions & 103 deletions .github/workflows/compare-regdata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,106 +111,3 @@ jobs:
name: compare_regression_data_${{ github.sha }}_${{ matrix.continuum }}_${{ matrix.os }}.html
include-hidden-files: true
path: ${{ github.workspace }}/tardis-regression-data/compare_regression_data_${{ github.sha }}_${{ matrix.continuum }}_${{ matrix.os }}.html

list-artifacts:
name: List Generated Artifacts
needs: tests
runs-on: ubuntu-latest
if: always()
steps:
- name: List and Get Artifacts Info
uses: actions/github-script@v7
id: get-artifacts
with:
script: |
const artifacts = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.runId
});
const artifactLinks = artifacts.data.artifacts
.filter(a => a.name.includes('compare_regression_data'))
.map(a => `- [${a.name}](https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}/artifacts/${a.id})`)
.join('\n');
return artifactLinks;

- name: Find existing comment
uses: peter-evans/find-comment@v3
id: fc
if: github.event_name == 'pull_request'
with:
issue-number: ${{ github.event.pull_request.number }}
body-includes: "Regression data comparison results"

- name: Post comment (success)
uses: peter-evans/create-or-update-comment@v4
if: success() && github.event_name == 'pull_request'
with:
token: ${{ secrets.BOT_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
comment-id: ${{ steps.fc.outputs.comment-id }}
edit-mode: replace
body: |
*\*beep\* \*bop\**
Hi, human!
The **`${{ github.workflow }}`** workflow has **succeeded** :heavy_check_mark:
Regression data comparison results are ready for your review:
${{ steps.get-artifacts.outputs.result }}
You can download and view these HTML files to see the detailed comparison results.
- name: Post comment (failure)
uses: peter-evans/create-or-update-comment@v4
if: failure() && github.event_name == 'pull_request'
with:
token: ${{ secrets.BOT_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
comment-id: ${{ steps.fc.outputs.comment-id }}
edit-mode: replace
body: |
*\*beep\* \*bop\**
Hi, human!
The **`${{ github.workflow }}`** workflow has **failed** :x:
[**Click here**](https://github.com/${{ github.repository_owner }}/${{ github.event.repository.name }}/actions/runs/${{ github.run_id }}?check_suite_focus=true) to see the build log.
push-artifacts:
name: Push Artifacts to Repository
needs: [tests]
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
pattern: compare_regression_data_*
path: artifacts

- name: Setup Git
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Clone target repository
run: |
git clone https://x-access-token:${{ secrets.ATHARVA_TOKEN }}@github.com/atharva-2001/regression-data-comp.git
cd regression-data-comp
# Create PR-specific directory
PR_DIR="PR-${{ github.event.pull_request.number }}"
mkdir -p "$PR_DIR"
# Copy artifacts to PR directory
cp -r ../artifacts/* "$PR_DIR/"
# Commit and push changes
git add "$PR_DIR"
git commit -m "Add regression data comparison for PR #${{ github.event.pull_request.number }}"
git push

0 comments on commit 544e117

Please sign in to comment.