Skip to content

Commit

Permalink
Make available to if
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Feb 22, 2024
1 parent 98bfe86 commit 7a7c270
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
permissions:
checks: write
pull-requests: write
TODO: publish with linux / macos / windows actions

steps:
- name: Checkout
Expand Down
11 changes: 8 additions & 3 deletions composite/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,14 @@ outputs:
runs:
using: 'composite'
steps:
- name: Debug
run: |
echo "$RUNNER_OS"
echo "OS=$RUNNER_OS" >> "$GITHUB_ENV"
shell: bash
- name: Run on Linux
id: linux
if: startsWith(env.RUNNER_OS, 'Linux')
if: startsWith(env.OS, 'Linux')
uses: EnricoMi/publish-unit-test-result-action/linux@branch-composite-os-actions-2
with:
GITHUB_TOKEN: ${{ inputs.github_token }}
Expand Down Expand Up @@ -202,7 +207,7 @@ runs:

- name: Run on macOS
id: macos
if: startsWith(env.RUNNER_OS, 'macOS')
if: startsWith(env.OS, 'macOS')
uses: EnricoMi/publish-unit-test-result-action/macos@branch-composite-os-actions-2
with:
GITHUB_TOKEN: ${{ inputs.github_token }}
Expand Down Expand Up @@ -251,7 +256,7 @@ runs:

- name: Run on Windows
id: windows
if: startsWith(env.RUNNER_OS, 'Windows')
if: startsWith(env.OS, 'Windows')
# for backward-compatibility (Windows used to be a bash script)
# deprecated, remove in v3
# prefer to use $GITHUB_ACTION_PATH/../windows
Expand Down

0 comments on commit 7a7c270

Please sign in to comment.