Skip to content

TM312/send-update-action

Repository files navigation

Send update action

This action sends the event details and optionally a file from the repo to a specified url as a POST-request.

Inputs

Parameter Required Default Info
filepath false The filepath relative to the root.
url true The API url to which the POST-request is being sent.

Outputs

  • response: The API response of the POST-request as a JSON-string.

Example usage

name: Send log update to <name-of-api>

on:
  push:
    branches:
      - main

jobs:
  send-update:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - uses: actions/[email protected]
      with:
        filepath: <filepath-to-file>
        url: <url-to-api>      

Important: The job must include the checkout action before the send-file action, otherwise it is not possible to send the specified file in the latter.

License

MIT

About

GH Action for sending event optionally including a file from the repo to an API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •