Skip to content

Commit

Permalink
ruby(ci): update var info step and add user info step
Browse files Browse the repository at this point in the history
  • Loading branch information
vpayno committed Oct 5, 2023
1 parent c30a3f5 commit 8ece4ae
Showing 1 changed file with 23 additions and 12 deletions.
35 changes: 23 additions & 12 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,29 @@ jobs:
steps:
- name: Check GitHub Vars
id: github-vars
run: set | grep -e ^CI -e ^GITHUB_ -e ^RUNNER_
run: |-
{
printf "\`\`\`text\n"
printf "Runner environment info:\n"
set | grep -e ^CI -e ^GITHUB_ -e ^RUNNER_
printf "\`\`\`\n"
} | tee -a "${GITHUB_STEP_SUMMARY}"
- name: Check GitHub User
id: github-vars

Check failure on line 33 in .github/workflows/ruby.yml

View workflow job for this annotation

GitHub Actions / GitHub Action Checks (ubuntu-latest)

step ID "github-vars" duplicates. previously defined at line:24,col:13. step ID must be unique within a job. note that step ID is case insensitive

Check failure on line 33 in .github/workflows/ruby.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/ruby.yml#L33

step ID "github-vars" duplicates. previously defined at line:24,col:13. step ID must be unique within a job. note that step ID is case insensitive [id]
Raw output
./.github/workflows/ruby.yml:33:13: step ID "github-vars" duplicates. previously defined at line:24,col:13. step ID must be unique within a job. note that step ID is case insensitive [id]
run: |-
# get user info for default gh container
{
printf "\`\`\`text\n"
printf "Container user info:\n"
who
printf "\n"
id
printf "\n"
printf "HOME: %s\n" "${HOME}"
printf "\n"
printf "SHELL: %s\n" "$(getent passwd "${USER}" | awk -F: '{print $NF}')"
printf "\`\`\`\n"
} | tee -a "${GITHUB_STEP_SUMMARY}"
- name: Checkout Repo
id: checkout-repo
uses: actions/checkout@v3
Expand All @@ -41,17 +63,6 @@ jobs:
printf "\n"
} | tee -a "${GITHUB_STEP_SUMMARY}"
# get user info for default gh container
{
printf "\`\`\`text\n"
printf "Container user info:\n"
who
printf "\n"
id
printf "\`\`\`\n"
} | tee -a "${GITHUB_STEP_SUMMARY}"
printf "\n"
# Diff HEAD with the previous commit then output to stdout.
GIT_DIFF="$(git diff --name-only HEAD^ HEAD | tee /tmp/changed_files.txt)"
{
Expand Down

0 comments on commit 8ece4ae

Please sign in to comment.