Skip to content

Testing if something is broken #94

Testing if something is broken

Testing if something is broken #94

Workflow file for this run

name: API workflow
on: [push, pull_request, workflow_dispatch]
permissions: write-all
jobs:
build:
runs-on: ubuntu-latest
name: Test python API
strategy:
matrix:
python_version: ['3.10', '3.9']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
- name: echo env vars
run: echo $GITHUB_WORKFLOW $GITHUB_JOB $GITHUB_RUN_ATTEMPT $GITHUB_RUN_ATTEMPT $GITHUB_RUN_NUMBER ${{ secrets.GITHUB_TOKEN }}
- name: make comment to pr
run: |
curl --request POST \
--url https://api.github.com/repos/${{ github.repository }}/issues \
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
--header 'content-type: application/json' \
--data '{
"title": "Automated issue for commit: ${{ github.sha }}",
"body": "This issue was automatically created by the GitHub Action workflow **${{ github.workflow }}**. \n\n The commit hash was: _${{ github.sha }}_."
}' \
--fail