Skip to content

Commit

Permalink
ci: actionlint validation
Browse files Browse the repository at this point in the history
  • Loading branch information
guitarrapc committed Nov 8, 2023
1 parent 7f999d6 commit 24c3f00
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/env_with_script.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Add PATH
run: echo "$HOME/foo/bar" >> "$GITHUB_PATH"
- name: Show PATH
run: echo $PATH
run: echo "$PATH"

windows:
runs-on: windows-latest
Expand All @@ -39,20 +39,20 @@ jobs:
- name: Add ENV and OUTPUT
id: tag
run: |
echo "GIT_TAG=$(${env:GITHUB_REF} -replace 'refs/heads/','')" >> $env:GITHUB_ENV
echo "git-tag=$(${env:GITHUB_REF} -replace 'refs/heads/','')" >> $env:GITHUB_OUTPUT
echo "GIT_TAG=$(${env:GITHUB_REF} -replace 'refs/heads/','')" >> "${env:GITHUB_ENV}"
echo "git-tag=$(${env:GITHUB_REF} -replace 'refs/heads/','')" >> "${env:GITHUB_OUTPUT}"
- name: Show ENV and OUTPUT
run: |
echo ${{ env.GIT_TAG }}
echo ${{ steps.tag.outputs.git-tag }}
echo "${{ env.GIT_TAG }}"
echo "${{ steps.tag.outputs.git-tag }}"
- name: Add ENV and OUTPUT by Script
id: tag-script
run: ./.github/scripts/setenv.ps1 -Ref $env:GITHUB_REF
run: ./.github/scripts/setenv.ps1 -Ref "${env:GITHUB_REF}"
- name: Show ENV and OUTPUT
run: |
echo ${{ env.GIT_TAG_SCRIPT }}
echo ${{ steps.tag-script.outputs.git-tag }}
echo "${{ env.GIT_TAG_SCRIPT }}"
echo "${{ steps.tag-script.outputs.git-tag }}"
- name: Add PATH
run: echo "$HOME/foo/bar" >> $env:GITHUB_PATH
run: echo "$HOME/foo/bar" >> "${env:GITHUB_PATH}"
- name: Show PATH
run: echo $env:PATH
run: echo "${env:PATH}"

0 comments on commit 24c3f00

Please sign in to comment.