From 158f89cd4d6da7d5416f533bd0c531d8cc322f18 Mon Sep 17 00:00:00 2001 From: Eugene Date: Sat, 25 Jan 2025 00:13:16 +0900 Subject: [PATCH] Bump gitleaks from 8.23.1 to 8.23.2 (#125) Bump gitleaks from 8.23.1 to 8.23.2 --- .pre-commit-config.yaml | 2 +- README.md | 68 +++++++++++++++++++++-------------------- action.yml | 24 +++++++-------- 3 files changed, 48 insertions(+), 46 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2947dcb1..ae35309c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -40,7 +40,7 @@ repos: hooks: - id: detect-secrets - repo: https://github.com/gitleaks/gitleaks - rev: v8.23.1 + rev: v8.23.2 hooks: - id: gitleaks - repo: https://github.com/fabasoad/pre-commit-snyk diff --git a/README.md b/README.md index 958411e8..839c5a0a 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,16 @@ This action sends Twilio voice call. +## Supported OS + + +| OS | | +|---------|--------------------| +| Windows | :white_check_mark: | +| Linux | :white_check_mark: | +| macOS | :white_check_mark: | + + ## Prerequisites Sign up to [Twilio](https://twilio.com) official web page. Then [register a new @@ -21,42 +31,34 @@ page](https://www.twilio.com/console). ## Inputs -| Name | Required | Description | Default | Possible values | -|--------------------|----------|-----------------------------------------------------------------|---------|----------------------------------| -| twilio_account_sid | Yes | Twilio account SID | | _<String>_ | -| twilio_auth_token | Yes | Twilio auth token | | _<String>_ | -| text | Yes | Text that will be send by voice call. | | _<String>_ | -| from | Yes | Phone number in your Twilio account to send the voice call from | | _<String>_ | -| to | Yes | Phone number to send the voice call to | | _<String>_ | -| voice | No | Call voice | `alice` | `man`, `woman`, `alice` | -| twilio_log_level | No | Log level of the output from twilio call request | `debug` | `debug`, `info`, `warn`, `error` | - -## Example usage - -### Workflow configuration - ```yaml -name: Twilio - -on: push - -jobs: - twilio-voice-call: - name: Twilio voice call - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: fabasoad/twilio-voice-call-action@v1 - if: success() - with: - text: 'GitHub actions build number ${{ github.run_number }} passed successfully.' - from: '+1(123)4567890' - to: '+1(123)4567809' - twilio_account_sid: ${{ secrets.TWILIO_ACCOUNT_SID }} - twilio_auth_token: ${{ secrets.TWILIO_AUTH_TOKEN }} +- uses: fabasoad/twilio-voice-call-action@v1 + with: + # (Required) Twilio Account SID. + twilio_account_sid: "${{ secrets.TWILIO_ACCOUNT_SID }}" + # (Required) Twilio Auth token. + twilio_auth_token: "${{ secrets.TWILIO_AUTH_TOKEN }}" + # (Required) Text that will be sent by voice call. + text: "GitHub actions build number ${{ github.run_number }} passed successfully." + # (Required) Phone number in your Twilio account to send the voice call from. + from: '+1(123)4567890' + # (Required) Phone number to send the voice call to. + to: '+1(123)4567809' + # (Optional) Call voice. Possible values: man, woman, alice. Defaults to "alice". + voice: "alice" + # (Optional) Twilio log level. Defaults to "debug". + twilio_log_level: "debug" ``` -### Result +## Outputs + +None. + +## Example phone call Download [example.mp3](https://raw.githubusercontent.com/fabasoad/twilio-voice-call-action/main/example.mp3) file to listen. + +## Contributions + +![Alt](https://repobeats.axiom.co/api/embed/379948bad849c09fd6752bbdcd4aec28c0c25617.svg "Repobeats analytics image") diff --git a/action.yml b/action.yml index 5df718d1..933a4707 100644 --- a/action.yml +++ b/action.yml @@ -1,34 +1,34 @@ --- -name: 'Twilio Voice Call' +name: Twilio Voice Call author: Yevhen Fabizhevskyi -description: 'This GitHub action sends voice call with the defined text.' +description: This GitHub action sends voice call with the defined text. branding: icon: phone-incoming color: white inputs: twilio_account_sid: - description: 'Twilio Account SID.' + description: Twilio Account SID. required: true twilio_auth_token: - description: 'Twilio Auth token.' + description: Twilio Auth token. required: true text: - description: 'Text that will be send by voice call.' + description: Text that will be sent by voice call. required: true from: - description: 'Phone number in your Twilio account to send the voice call from.' + description: Phone number in your Twilio account to send the voice call from. required: true to: - description: 'Phone number to send the voice call to.' + description: Phone number to send the voice call to. required: true voice: - description: 'Call voice. Possible values: man, woman, alice.' + description: "Call voice. Possible values: man, woman, alice." required: false default: alice twilio_log_level: - description: 'Twilio log level.' + description: Twilio log level. required: false - default: 'debug' + default: debug runs: - using: 'node20' - main: 'dist/index.js' + using: node20 + main: dist/index.js