diff --git a/README.md b/README.md index 8d0c8f4..dd8090a 100644 --- a/README.md +++ b/README.md @@ -16,22 +16,18 @@ Create a [Buildkite API Access Token](https://buildkite.com/docs/apis/rest-api#a For example, the following workflow creates a new Buildkite build on every commit: -```workflow -workflow "Trigger a Buildkite Build" { - on = "push" - resolves = ["Build"] -} - -action "Build" { - uses = "buildkite/trigger-pipeline-action@v1.3.0" - secrets = ["BUILDKITE_API_ACCESS_TOKEN"] - env = { - PIPELINE = "my-org/my-deploy-pipeline" - COMMIT = "HEAD" - BRANCH = "master" - MESSAGE = ":github: Triggered from a GitHub Action" - } -} +``` +on: [push] + +steps: + - name: Trigger a Buildkite Build + uses: "buildkite/trigger-pipeline-action@v1.3.0" + env: + BUILDKITE_API_ACCESS_TOKEN: ${{ secrets.TRIGGER_BK_BUILD_TOKEN }} + PIPELINE: "my-org/my-deploy-pipeline" + BRANCH: "master" + COMMIT: "HEAD" + MESSAGE: ":github: Triggered from a GitHub Action" ``` ## Configuration Options diff --git a/action.yml b/action.yml index 8f9c34b..e922d5a 100644 --- a/action.yml +++ b/action.yml @@ -1,25 +1,6 @@ name: 'Trigger Buildkite Pipeline' author: 'Buildkite' description: 'A GitHub Action for triggering a build on a Buildkite pipeline.' -inputs: - buildkite_token: - description: 'Buildkite API Access Token' - required: true - pipeline: - description: 'The pipline to create a build on, in the format /' - required: true - commit_sha: - description: 'The commit SHA of the build' - required: false - branch_ref: - description: 'The branch of the build' - required: false - commit_message: - description: 'The message for the build' - required: false - build_env_vars: - description: 'Additional environment variables to set on the build, in JSON format' - required: false runs: using: 'docker' image: 'Dockerfile' \ No newline at end of file