docbrown/.github/workflows/buildkite.yml
dependabot[bot] 01c6445a11
Bump actions/checkout from 2 to 3 (#16739)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-02 09:51:43 -05:00

28 lines
1.3 KiB
YAML

name: Buildkite
on:
issue_comment:
types: [created]
jobs:
add_ci_label:
name: "Add CI label to pull request"
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/ci') && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'CONTRIBUTOR')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-ecosystem/action-add-labels@v1
with:
github_token: ${{ secrets.github_token }}
labels: ci
build_containers:
name: "Run forem/build-containers pipeline"
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/ci') && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'CONTRIBUTOR')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: ./scripts/create_buildkite_pr_build.sh
env:
BUILDKITE_API_ACCESS_TOKEN: ${{ secrets.buildkite_api_access_token }}
PIPELINE: "forem/build-containers"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PULL_REQUEST_ID: ${{ github.event.issue.number }}