|
21 | 21 | # Sets an output parameter if this is a release PR |
22 | 22 | - name: Check for release |
23 | 23 | id: release-check |
24 | | - run: echo "::set-output name=IS_RELEASE::true" |
| 24 | + # For windows we have to use $env: |
| 25 | + run: |- |
| 26 | + echo "IS_RELEASE=true" >> $GITHUB_OUTPUT |
| 27 | + echo "IS_RELEASE=true" >> $env:GITHUB_OUTPUT |
25 | 28 | if: ${{ startsWith(github.head_ref, 'release-') }} |
26 | 29 | - uses: actions/checkout@v3 |
27 | 30 | with: |
@@ -100,7 +103,10 @@ jobs: |
100 | 103 | # Sets an output parameter if this is a release PR |
101 | 104 | - name: Check for release |
102 | 105 | id: release-check |
103 | | - run: echo "::set-output name=IS_RELEASE::true" |
| 106 | + # For windows we have to use $env: |
| 107 | + run: |- |
| 108 | + echo "IS_RELEASE=true" >> $GITHUB_OUTPUT |
| 109 | + echo "IS_RELEASE=true" >> $env:GITHUB_OUTPUT |
104 | 110 | if: ${{ startsWith(github.head_ref, 'release-') }} |
105 | 111 | - name: Git checkout |
106 | 112 | uses: actions/checkout@v3 |
@@ -137,11 +143,14 @@ jobs: |
137 | 143 | - name: Get test coverage flags |
138 | 144 | id: test-coverage-flags |
139 | 145 | if: ${{ !steps.release-check.outputs.IS_RELEASE }} |
| 146 | + # For windows we have to use $env: |
140 | 147 | run: |- |
141 | 148 | os=${{ matrix.os }} |
142 | | - node=${{ matrix.node-version }} |
143 | | - echo "::set-output name=os::${os/-latest/}" |
144 | | - echo "::set-output name=node::node_${node//[.*]/}" |
| 149 | + node=$(node --version) |
| 150 | + echo "os=${os/-latest/}" >> $GITHUB_OUTPUT |
| 151 | + echo "os=${os/-latest/}" >> $env:GITHUB_OUTPUT |
| 152 | + echo "node=node_${node/.*.*/}" >> $GITHUB_OUTPUT |
| 153 | + echo "node=node_${node/.*.*/}" >> $env:GITHUB_OUTPUT |
145 | 154 | shell: bash |
146 | 155 | - uses: codecov/codecov-action@v3 |
147 | 156 | if: ${{ !steps.release-check.outputs.IS_RELEASE }} |
|
0 commit comments