Test env vars vs. context printing #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Danger on GitHub PR events | |
on: | |
push: | |
branches: | |
- 'iangmaia/gha-triggering-danger**' | |
pull_request: | |
types: [review_requested, review_request_removed, labeled, unlabeled, milestoned, demilestoned] | |
jobs: | |
dangermattic: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Print some test env | |
run: | | |
echo "Sha: $env:GITHUB_SHA, ref: $env:GITHUB_REF" | |
- name: Print some test context | |
run: | | |
echo "ref: ${{ github.head_ref }} sha: ${{ github.sha }}" | |
# - name: "☢️ Danger - PR Check" | |
# uses: "buildkite/trigger-pipeline-action@v2.0.0" | |
# with: | |
# buildkite_api_access_token: ${{ secrets.TRIGGER_BK_BUILD_TOKEN }} | |
# pipeline: "automattic/woocommerce-android" | |
# branch: "${{ github.head_ref }}" | |
# build_env_vars: '{"PIPELINE": "danger.yml", "BUILDKITE_PULL_REQUEST": "${{ github.event.issue.number }}", "BUILDKITE_PULL_REQUEST_REPO": "${{ github.repositoryUrl }}", "BUILDKITE_PULL_REQUEST_BASE_BRANCH": "${{ github.base_ref }}"}' |