Skip to content

Commit 121ca49

Browse files
authored
Merge pull request #804 from rust-embedded/fix-diff-newline
fix incorrect handling of newline in /ci diff
2 parents 869d34f + 63f5b65 commit 121ca49

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

.github/workflows/diff.yml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,11 @@ on:
44
types: [created]
55

66
jobs:
7-
debug:
8-
runs-on: ubuntu-latest
9-
needs: [diff, generate, summary]
10-
if: always() && (vars.ACTIONS_RUNNER_DEBUG || vars.ACTIONS_STEP_DEBUG )
11-
steps:
12-
- name: echo needs
13-
run: echo '${{ toJson(needs) }}'
14-
- name: echo github
15-
run: echo '${{ toJson(github) }}'
16-
- name: echo pull request
17-
run: echo '${{ github.event.issue.pull_request == 'true' }}'
18-
- name: echo comment association
19-
run: echo '${{ github.event.comment.author_association }} - ${{ github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER' }}'
20-
- name: echo comment body
21-
run: echo '${{ contains(github.event.comment.body, '\n/ci') || startsWith(github.event.comment.body, '/ci') }}'
22-
- name: echo generate diffs
23-
run: echo '${{ needs.generate.outputs.diffs != '{}' && needs.generate.outputs.diffs != '[]' && needs.generate.outputs.diffs != '' }}'
24-
- name: echo generate result
25-
run: echo '${{ needs.generate.result == 'success' }}'
267
generate:
278
runs-on: ubuntu-latest
289
outputs:
2910
diffs: ${{ steps.regress-ci.outputs.diffs }}
30-
if: github.event.issue.pull_request && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') && (contains(github.event.comment.body, '\n/ci') || startsWith(github.event.comment.body, '/ci'))
11+
if: github.event.issue.pull_request && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') && (contains(toJson(github.event.comment.body), '\n/ci') || startsWith(github.event.comment.body, '/ci'))
3112
steps:
3213
- uses: actions/checkout@v4
3314

0 commit comments

Comments
 (0)