Skip to content

Commit

Permalink
Make another commit without force pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
danielle-casella-adams committed Mar 22, 2024
1 parent 15678a7 commit 04c8ff3
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build-and-review-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,13 @@ jobs:
env:
ACTION_ORG: ${{ github.repository_owner }}
ACTION_NAME: create-app-insights-annotation
COMMIT_STATUS_CONTEXT: 'External create-app-insights-annotation Tests'

DISPATCH_TYPE: 'create-app-insights-annotation-tests'

DISPATCH_TYPE: '${{env.ACTION_NAME}}-tests'
COMMIT_STATUS_CONTEXT: 'External Tests / ${{ env.DISPATCH_TYPE }}'

EXTERNAL_ORG: 'im-practices'
EXTERNAL_REPO: 'internal-repo-for-testing-swat-actions'
EXTERNAL_REPO: 'external-tests-for-swat-actions'
EXTERNAL_WORKFLOW: 'test-repo-dispatch.yml' # '${{ env.DISPATCH_TYPE }}.yml'

steps:
- name: Create ${{ github.event.pull_request.head.repo.fork && 'an error' || 'a pending' }} commit status
Expand All @@ -83,8 +85,9 @@ jobs:
github.rest.repos.createCommitStatus({
owner: '${{ env.ACTION_ORG }}',
repo: '${{ env.ACTION_NAME }}',
sha: '${{ github.event.pull_request.head.sha }}}',
sha: '${{ github.event.pull_request.head.sha }}',
context: '${{ env.COMMIT_STATUS_CONTEXT }}',
target_url: 'https://github.com/${{ env.EXTERNAL_ORG }}/${{ env.ACTION_NAME }}/actions/workflows/${{ env.EXTERNAL_WORKFLOW }}',
state: isFork ? 'error' : 'pending',
description: isFork ? 'Forks do not have permission to kick off external tests' : 'The external tests have been kicked off'
});
Expand All @@ -110,6 +113,6 @@ jobs:
'action-name': '${{ env.ACTION_NAME }}',
'action-ref': '${{ github.event.pull_request.head.ref }}',
'action-sha': '${{ github.event.pull_request.head.sha }}',
'commit-status-context': '${{ env.COMMIT_STATUS_CONTEXT}}'
'commit-status-context': '${{ env.COMMIT_STATUS_CONTEXT }}'
}
});

0 comments on commit 04c8ff3

Please sign in to comment.