Visitar URL original
Rewrite qhelp-pr-preview.yml by aibaars · Pull Request #6995 · github/codeql · GitHub
The Wayback Machine - https://web.archive.org/web/20211101022600/https://github.com/github/codeql/pull/6995
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite qhelp-pr-preview.yml #6995

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

Conversation

Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
@aibaars
Copy link
Contributor

@aibaars aibaars commented Oct 28, 2021

No description provided.

@aibaars aibaars force-pushed the aibaars/pr-qhelp-check branch 5 times, most recently from 25a7f24 to 6ac05dd Oct 29, 2021
@aibaars aibaars force-pushed the aibaars/pr-qhelp-check branch from 6ac05dd to a0903c3 Oct 29, 2021
sort -u | xargs -d '\n' -n1 printf "'%s' "
- uses: ./.github/actions/fetch-codeql
(git diff --name-only --diff-filter=ACMRT HEAD~1 HEAD | grep '.qhelp$' | grep -v '.inc.qhelp';
Copy link
Contributor

@intrigus-lgtm intrigus-lgtm Oct 31, 2021 •

git diff also has the -z option to use NULs as terminators instead of \n.
(I think git diff already quotes pathnames with \n and other special characters)
sort and grep also support -z.
But I don't know whether using NULs would bring any benefits as this job only has read permission and a pull_request trigger. I also don't know how the cat "${{ runner.temp }}/paths.txt" | while read path; do would have to be changed...

runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: dawidd6/action-download-artifact@af92a8455a59214b7b932932f2662fdefbd78126
Copy link
Contributor

@intrigus-lgtm intrigus-lgtm Oct 31, 2021

I think you could get rid of this external action by doing something like this:
gh run download --name "comment" "$RUN_ID"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment