> ## Documentation Index
> Fetch the complete documentation index at: https://plivo.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up your workflow

> Create a GitHub Actions workflow to send Plivo SMS on events

In GitHub Actions, a [workflow](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions) is a configurable automated process made up of one or more jobs. A YAML file defines your workflow configuration.

You can use the GitHub web UI to add a workflow to your repository, or you can configure your workflow by modifying files locally. Here’s how each of those processes look.

## GitHub UI

* Go to the repository where you want to set up a workflow.

* Click on **Actions**, then select set up a **workflow**.

  <Frame caption="Set Up Workflow">
    <img src="https://mintcdn.com/plivo/VVpGlua-mdfO5CNz/images/integrations/github-actions/setupworkflow.png?fit=max&auto=format&n=VVpGlua-mdfO5CNz&q=85&s=b4a7528d53ac7d33b58e0148dab821f1" width="1437" height="754" data-path="images/integrations/github-actions/setupworkflow.png" />
  </Frame>

* Under Marketplace, search for Plivo SMS, then click on it.

  <Frame caption="Github Marketplace">
    <img src="https://mintcdn.com/plivo/_fSpYHZS4fGpqS0Z/images/integrations/github-actions/marketplace.png?fit=max&auto=format&n=_fSpYHZS4fGpqS0Z&q=85&s=ce324c61f64ab6b98f333244bd2afa86" width="1440" height="758" data-path="images/integrations/github-actions/marketplace.png" />
  </Frame>

* Copy the code snippet from the Installation pane and paste it into your **main.yml** file.

* You can paste the code snippet within the **steps** interface.

  ```yml theme={null}
  steps: 
  - name: 'Sending SMS Notification'
    uses: plivo/actions-sms@v1
    with:
      fromPhoneNumber: ${{secrets.FROM_NUMBER}}
      toPhoneNumber: ${{secrets.TO_NUMBER}}
      message: '💡There has been new release to ${{github.repository}}'
    env:
      PLIVO_AUTH_ID: ${{secrets.PLIVO_AUTH_ID}}
      PLIVO_AUTH_TOKEN: ${{secrets.PLIVO_AUTH_TOKEN}}
  ```

* Click on the **Start commit** button to commit the changes in your branch.

## Locally

* Go to your local repository and create a new directory named\*\* .github/workflows\*\*, then create a new file name **main.yml**.

* Paste this code within the **steps** interface.

  ```yml theme={null}
  steps:
  - name: 'Sending SMS Notification'
    uses: plivo/actions-sms@v1
    with:
      fromPhoneNumber: ${{secrets.FROM_NUMBER}}
      toPhoneNumber: ${{ secrets.TO_NUMBER}}
      message: '💡There has been new release to ${{github.repository}}'
    env:
      PLIVO_AUTH_ID: ${{ secrets.PLIVO_AUTH_ID}}
      PLIVO_AUTH_TOKEN: ${{ secrets.PLIVO_AUTH_TOKEN}}
  ```

* Commit the changes to your repository.
