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 c5a46b7 commit f55c89b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/trigger_backend_data_validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,19 @@ jobs:
shell: bash
run: echo "BRANCH_NAME=$(echo ${GITHUB_HEAD_REF} | tr / -)" >> $GITHUB_ENV

- name: Get Pull Request fork repo url
if: github.event_name == 'pull_request'
shell: bash
run: echo "FORK_REPO_URL=${{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
id: webhook-api
if: steps.changed-files-specific.outputs.any_changed == 'true'
with:
url: https://api.santiment.net/projects_data_validator_webhook
method: POST
data: '{ "branch": "${{ env.BRANCH_NAME }}", "changed_files": "${{ steps.changed-files-specific.outputs.all_changed_files }}" }'
data: '{ "fork_repo_url": "${{ env.FORK_REPO_URL }}", "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 f55c89b

Please sign in to comment.