Skip to content

docs: add strict bot policies (non-loop mode) #9

docs: add strict bot policies (non-loop mode)

docs: add strict bot policies (non-loop mode) #9

name: Trigger Integration Tests

Check failure on line 1 in .github/workflows/trigger-integration.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/trigger-integration.yml

Invalid workflow file

(Line: 28, Col: 9): 'env' is already defined
on:
pull_request:
branches: [main]
release:
types: [published]
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Trigger integration tests
env:
GH_TOKEN: ${{ secrets.INTEGRATION_TOKEN }}
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
gh api repos/xPyD-hub/xPyD-integration/dispatches \
-f event_type=pr-check \
-f "client_payload[repo]=$REPO_NAME" \
-f "client_payload[ref]=${{ github.head_ref }}"
else
gh api repos/xPyD-hub/xPyD-integration/dispatches \
-f event_type=release-check \
-f "client_payload[repo]=$REPO_NAME" \
-f "client_payload[version]=${{ github.event.release.tag_name }}"
fi
env:
GH_TOKEN: ${{ secrets.INTEGRATION_TOKEN }}
REPO_NAME: $repo