Skip to content

Commit

Permalink
Update trigger_backend_data_validator.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanIvanoff authored Jan 18, 2024
1 parent f55c89b commit 7fbcd8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/trigger_backend_data_validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:
shell: bash
run: echo "BRANCH_NAME=$(echo ${GITHUB_HEAD_REF} | tr / -)" >> $GITHUB_ENV

- name: Get Pull Request fork repo url
- name: Get Pull Request fork repo organization/repo
if: github.event_name == 'pull_request'
shell: bash
run: echo "FORK_REPO_URL=${{github.event.pull_request.head.repo.full_name}}" >> $GITHUB_ENV
run: echo "FORK_REPO=${{github.event.pull_request.head.repo.full_name}}" >> $GITHUB_ENV

- name: Trigger a backend webhook that will read the changed files and validate the changes
uses: fjogeleit/http-request-action@v1
Expand All @@ -51,7 +51,7 @@ jobs:
with:
url: https://api.santiment.net/projects_data_validator_webhook
method: POST
data: '{ "fork_repo_url": "${{ env.FORK_REPO_URL }}", "branch": "${{ env.BRANCH_NAME }}", "changed_files": "${{ steps.changed-files-specific.outputs.all_changed_files }}" }'
data: '{ "fork_repo": "${{ env.FORK_REPO }}", "branch": "${{ env.BRANCH_NAME }}", "changed_files": "${{ steps.changed-files-specific.outputs.all_changed_files }}" }'
timeout: 60000

- name: "Use response"
Expand Down

0 comments on commit 7fbcd8f

Please sign in to comment.