Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/actions/scripts/common_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ if [ -n "${GITHUB_HEAD_REF:-}" ] && [ "$GITHUB_HEAD_REF" != "main" ]; then
# On PRs from forks, GITHUB_HEAD_REF is the name of the branch in the forked repo, so we cannot actually checkout that branch directly.
git checkout "$GITHUB_HEAD_REF" || true
fi

git fetch origin 'refs/heads/release-line*:refs/heads/origin/release-line*' --force

echo "GITHUB_SHA: ${GITHUB_SHA:-}"
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
on:
pull_request:
types: [ opened, synchronize, reopened ]

jobs:
foo:
runs-on: ubuntu-latest
steps:
- name: Run a simple command
run: echo "I'm a malicious PR"