Skip to content

Commit

Permalink
copied .github/workflows/merge.yaml .github/workflows/sheldon.yaml fr…
Browse files Browse the repository at this point in the history
…om styles
  • Loading branch information
csl-bot committed Sep 10, 2024
1 parent 7eeb362 commit 8bc2af1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
DISTRIBUTION_UPDATER_TOKEN: "${{ secrets.DISTRIBUTION_UPDATER_TOKEN }}"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name == 'push'
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name == 'workflow_dispatch'
with:
fetch-depth: 0
Expand All @@ -35,7 +35,7 @@ jobs:
id: release
run: echo ::set-output name=branch::v1.0.2
- name: Checkout release branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ steps.release.outputs.branch }}
path: './release'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sheldon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ jobs:
# labels to a PR
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests
- name: Checkout repo for OWNER TEST
uses: actions/checkout@v3
uses: actions/checkout@v4
if: contains(github.event.pull_request.labels.*.name, 'safe to test')
with:
ref: ${{ github.event.pull_request.head.ref }}

# otherwise, checkout the current master, and the pr to the subdirectory 'pull-request'
- name: Checkout base repo for pull-request test
uses: actions/checkout@v3
uses: actions/checkout@v4
if: "! contains(github.event.pull_request.labels.*.name, 'safe to test')"
- name: Checkout pull-request
uses: actions/checkout@v3
uses: actions/checkout@v4
if: "! contains(github.event.pull_request.labels.*.name, 'safe to test')"
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
Expand Down

0 comments on commit 8bc2af1

Please sign in to comment.