Skip to content

Commit

Permalink
Replace workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kabir committed Aug 16, 2022
1 parent 775e585 commit 40490fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 113 deletions.
111 changes: 0 additions & 111 deletions .github/workflows/cloud-test-pr-trigger-target.yml

This file was deleted.

10 changes: 8 additions & 2 deletions .github/workflows/cloud-test-pr-trigger.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Cloud Tests Trigger
on:
pull_request:
pull_request_target:
branches:
- main
env:
Expand All @@ -23,6 +23,10 @@ jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Output
env:
MESSAGE: ${{ toJSON(github.event) }}
run: echo "$MESSAGE"

- name: Checkout run-status branch
if: ${{ env.TOKEN }}
Expand All @@ -38,9 +42,11 @@ jobs:
FILENAME="$GITHUB_RUN_ID-$GITHUB_RUN_NUMBER-$GITHUB_RUN_ATTEMPT.json"
echo "FILENAME=$FILENAME" >> $GITHUB_ENV
REFERENCE="refs/pull/${{github.event.number}}/merge"
CLIENT_PAYLOAD=$( jq -n \
--arg tr "$GITHUB_REPOSITORY" \
--arg ref "$GITHUB_REF" \
--arg ref "$REFERENCE" \
--arg sf "$FILENAME" \
'{triggerRepo: $tr, ref: $ref, statusFile: $sf}' )
Expand Down

0 comments on commit 40490fe

Please sign in to comment.