Skip to content

Commit

Permalink
Merge pull request #804 from rust-embedded/fix-diff-newline
Browse files Browse the repository at this point in the history
fix incorrect handling of newline in /ci diff
  • Loading branch information
Emilgardis authored Feb 2, 2024
2 parents 869d34f + 63f5b65 commit 121ca49
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,11 @@ on:
types: [created]

jobs:
debug:
runs-on: ubuntu-latest
needs: [diff, generate, summary]
if: always() && (vars.ACTIONS_RUNNER_DEBUG || vars.ACTIONS_STEP_DEBUG )
steps:
- name: echo needs
run: echo '${{ toJson(needs) }}'
- name: echo github
run: echo '${{ toJson(github) }}'
- name: echo pull request
run: echo '${{ github.event.issue.pull_request == 'true' }}'
- name: echo comment association
run: echo '${{ github.event.comment.author_association }} - ${{ github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER' }}'
- name: echo comment body
run: echo '${{ contains(github.event.comment.body, '\n/ci') || startsWith(github.event.comment.body, '/ci') }}'
- name: echo generate diffs
run: echo '${{ needs.generate.outputs.diffs != '{}' && needs.generate.outputs.diffs != '[]' && needs.generate.outputs.diffs != '' }}'
- name: echo generate result
run: echo '${{ needs.generate.result == 'success' }}'
generate:
runs-on: ubuntu-latest
outputs:
diffs: ${{ steps.regress-ci.outputs.diffs }}
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'))
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'))
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit 121ca49

Please sign in to comment.