Skip to content

Commit

Permalink
Exclude GitHub Action e2e Tests for Dependabot PRs (#1578)
Browse files Browse the repository at this point in the history
  • Loading branch information
pastuxso committed Aug 21, 2024
1 parent f59fb64 commit 7fed03f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
RUNME_TEST_TOKEN: ${{ secrets.RUNME_TEST_TOKEN }}
RUNME_PROJECT: ${{ github.workspace }}
SHELL: bash
GITHUB_ACTOR: ${{ github.actor }}
- name: 🔼 Upload Artifacts
uses: actions/upload-artifact@v3
if: failure()
Expand Down
6 changes: 5 additions & 1 deletion tests/e2e/specs/githubAction.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ describe('Runme GitHub Workflow Integration', async () => {
/**
* Skip GitHub Action tests for local testing due to missing token
*/
if ((!token && !process.env.CI) || process.env.NODE_ENV === 'production') {
if (
(!token && !process.env.CI) ||
process.env.NODE_ENV === 'production' ||
process.env.GITHUB_ACTOR === 'dependabot[bot]'
) {
return
}

Expand Down

0 comments on commit 7fed03f

Please sign in to comment.