Skip to content

Commit

Permalink
CI: Upgrade some more actions to their latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Geod24 committed Jun 21, 2024
1 parent dd94e48 commit b265bb3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/pr_info_intro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ permissions:
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/[email protected]
with:
message: |
Thanks for your Pull Request and making D better!
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr_info_post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ permissions:
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({
Expand All @@ -46,7 +46,7 @@ jobs:
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 }}
2 changes: 1 addition & 1 deletion .github/workflows/pr_info_untrusted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
pr_info:
name: PR Info
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
# we first create a comment thanking the user in pr_info_intro.yml
# (separate step due to needing GITHUB_TOKEN access)
Expand Down

0 comments on commit b265bb3

Please sign in to comment.