Skip to content

Commit

Permalink
Update test_woa.yml to not set vars
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith authored Sep 6, 2024
1 parent be28a9d commit c0746d4
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions .github/workflows/test_woa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,7 @@ jobs:
- name: Checkout code again with git, so git commands work.
uses: actions/checkout@v3

- name: Set Git Environment Variables
id: set_git_env_vars
shell: powershell
run: |
$env:GIT_COMMIT = git rev-parse HEAD
$env:GIT_COMMIT_SHORT = git rev-parse --short HEAD
$env:GIT_OPTIONAL_TAG = if ($(git describe --tags --exact-match 2>$null)) { $(git describe --tags --exact-match) } else { '' }
$env:GIT_DESCRIBE_ALWAYS = git describe --always --tags
$env:GIT_DESCRIBE_ALWAYS_LONG = git describe --always --tags --long
$env:GIT_DESCRIBE_AAL = git describe --always --all --long
$env:GIT_OPTIONAL_BRANCH = if ($(git symbolic-ref --short HEAD 2>$null)) { $(git symbolic-ref --short HEAD) } else { '' }
# Output the variables to GITHUB_ENV
"GIT_COMMIT=$env:GIT_COMMIT" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
"GIT_COMMIT_SHORT=$env:GIT_COMMIT_SHORT" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
"GIT_OPTIONAL_TAG=$env:GIT_OPTIONAL_TAG" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
"GIT_DESCRIBE_ALWAYS=$env:GIT_DESCRIBE_ALWAYS" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
"GIT_DESCRIBE_ALWAYS_LONG=$env:GIT_DESCRIBE_ALWAYS_LONG" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
"GIT_DESCRIBE_AAL=$env:GIT_DESCRIBE_AAL" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
"GIT_OPTIONAL_BRANCH=$env:GIT_OPTIONAL_BRANCH" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

- name: Install NASM
uses: ./.github/actions/install-nasm

Expand Down

0 comments on commit c0746d4

Please sign in to comment.