1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
name: POST example on: push: branches: - master pull_request: branches: - master jobs: send: name: Send POST request from GitHub Actions runs-on: ubuntu-latest steps: - name: Send post request with: url: https://some-url/handle-post method: POST payload: '{"foo": "bar", ""pipeline_name": "${{ github.event.repository.name }}"}' |
При помощи webrequest-action можно делать множество различных запросов (как POST так и GET) самой разной сложности. Больше примеров можно найти в README автора.