Skip to content

Commit

Permalink
show env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocab committed Apr 28, 2023
1 parent ce00436 commit e297571
Showing 1 changed file with 8 additions and 25 deletions.
33 changes: 8 additions & 25 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ jobs:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Show `GITHUB_ variables`.
run: |
printf '```\n' >> "$GITHUB_STEP_SUMMARY"
printf '%s\n' "$(env | grep -E '^GITHUB_')" | tee -a "$GITHUB_STEP_SUMMARY"
printf '```\n' >> "$GITHUB_STEP_SUMMARY"
- name: Save pull request number
env:
PR: ${{github.event.number}}
Expand All @@ -29,36 +35,13 @@ jobs:
container:
image: ghcr.io/homebrew/ubuntu22.04:master
steps:
- name: Test `if`
if: ${{
true &&
true &&
!false
}}
run: echo it worked!

- name: Show `gh version`.
run: |
printf '### `gh version` output\n' >> "$GITHUB_STEP_SUMMARY"
printf '```\n' >> "$GITHUB_STEP_SUMMARY"
printf '%s\n' "$(gh version)" | tee -a "$GITHUB_STEP_SUMMARY"
printf '```\n' >> "$GITHUB_STEP_SUMMARY"
- name: Show `gh pr merge --help`.
run: |
printf '### `gh pr merge --help` output\n' >> "$GITHUB_STEP_SUMMARY"
printf '```\n' >> "$GITHUB_STEP_SUMMARY"
printf '%s\n' "$(gh pr merge --help)" | tee -a "$GITHUB_STEP_SUMMARY"
printf '```\n' >> "$GITHUB_STEP_SUMMARY"
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
with:
test-bot: false

- name: Show `brew --version`.
- name: Show `GITHUB_ variables`.
run: |
printf '### `brew --version` output\n' >> "$GITHUB_STEP_SUMMARY"
printf '```\n' >> "$GITHUB_STEP_SUMMARY"
printf '%s\n' "$(brew --version)" | tee -a "$GITHUB_STEP_SUMMARY"
printf '%s\n' "$(env | grep -E '^GITHUB_')" | tee -a "$GITHUB_STEP_SUMMARY"
printf '```\n' >> "$GITHUB_STEP_SUMMARY"

0 comments on commit e297571

Please sign in to comment.