CI: Upgrade some more actions to their latest versions
1 parent dd94e48 commit b265bb3d62659ad9ba7284c762a890eca05a190a
@Mathias Lang Mathias Lang authored on 18 Jun
Mathias LANG committed on 21 Jun
Showing 3 changed files
View
8
.github/workflows/pr_info_intro.yml
 
jobs:
intro_comment:
name: Make intro comment
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: 'Prepare sticky comment'
# commit of v2.5.0
# same one used again at the bottom of the file to update the comment.
uses: marocchino/sticky-pull-request-comment@3d60a5b2dae89d44e0c6ddc69dd7536aec2071cd
uses: marocchino/sticky-pull-request-comment@2.9.0
with:
message: |
Thanks for your Pull Request and making D better!
 
View
6
.github/workflows/pr_info_post.yml
 
jobs:
comment:
name: PR Info
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
if: >
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'
steps:
# from https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
- name: 'Download artifact'
uses: actions/github-script@v3.1.0
uses: actions/github-script@v7
with:
script: |
var artifacts = await github.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
PR_ID=$(cat ./NR)
echo "PR_ID=$PR_ID" >> $GITHUB_ENV
 
- name: Update GitHub comment
uses: marocchino/sticky-pull-request-comment@3d60a5b2dae89d44e0c6ddc69dd7536aec2071cd
uses: marocchino/sticky-pull-request-comment@2.9.0
with:
path: ./comment.txt
number: ${{ env.PR_ID }}
View
.github/workflows/pr_info_untrusted.yml