build: fix test-invoke-pip.yml

- Restore conditional which ensures tests are only run on `main`
- Fix `yaml` syntax error
This commit is contained in:
psychedelicious 2023-05-24 10:35:42 +10:00
parent 19da795274
commit d6efb98953

View File

@ -80,7 +80,8 @@ jobs:
uses: actions/checkout@v3
- name: set test prompt to main branch validation
run:echo "TEST_PROMPTS=tests/validate_pr_prompt.txt" >> ${{ matrix.github-env }}
if: ${{ github.ref == 'refs/heads/main' }}
run: echo "TEST_PROMPTS=tests/validate_pr_prompt.txt" >> ${{ matrix.github-env }}
- name: setup python
uses: actions/setup-python@v4