mirror of
https://github.com/julia-actions/julia-runtest.git
synced 2026-02-12 11:06:54 +08:00
Compare commits
10 Commits
ib/info_on
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
82b3af17b1 | ||
|
|
7efd635293 | ||
|
|
d60b785c6f | ||
|
|
80da54fb1f | ||
|
|
2e39f09cda | ||
|
|
4106f361b2 | ||
|
|
1cc5cea014 | ||
|
|
8b0e8344b9 | ||
|
|
639d29024e | ||
|
|
ee4584ffbd |
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -51,7 +51,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout Example.jl
|
||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
||||
with:
|
||||
repository: julia-actions/Example.jl
|
||||
|
||||
@@ -60,7 +60,7 @@ jobs:
|
||||
shell: bash
|
||||
|
||||
- name: Checkout julia-runtest
|
||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
||||
with:
|
||||
path: ./.github/actions/julia-runtest
|
||||
|
||||
@@ -77,7 +77,7 @@ jobs:
|
||||
|
||||
- uses: julia-actions/julia-processcoverage@03114f09f119417c3242a9fb6e0b722676aedf38
|
||||
|
||||
- uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
|
||||
- uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
|
||||
with:
|
||||
files: lcov.info
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
||||
2
.github/workflows/test_logger_ci.yml
vendored
2
.github/workflows/test_logger_ci.yml
vendored
@@ -51,7 +51,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout julia-runtest
|
||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
||||
|
||||
- uses: julia-actions/setup-julia@5c9647d97b78a5debe5164e9eec09d653d29bd71 # v2.6.1
|
||||
with:
|
||||
|
||||
@@ -25,8 +25,16 @@ if haskey(ENV, "GITHUB_SHA") && get(ENV, "GITHUB_EVENT_NAME", "") == "pull_reque
|
||||
|
||||
# Check if there's any difference between the merge commit and the PR head
|
||||
# In GitHub Actions, HEAD^2 is the PR head (second parent of merge commit)
|
||||
# success() returns true if the command exits with 0 (no differences)
|
||||
has_diff = !success(`git diff --quiet --exit-code HEAD^2 HEAD`)
|
||||
# First check if HEAD^2 exists (i.e., this is actually a merge commit)
|
||||
if success(`git rev-parse --verify --quiet HEAD^2`)
|
||||
# Compare tree hashes to check if content actually differs
|
||||
merge_tree = chomp(read(`git rev-parse HEAD^\{tree\}`, String))
|
||||
pr_tree = chomp(read(`git rev-parse HEAD^2^\{tree\}`, String))
|
||||
has_diff = merge_tree != pr_tree
|
||||
else
|
||||
# Not a merge commit, so no difference to report
|
||||
has_diff = false
|
||||
end
|
||||
|
||||
if has_diff
|
||||
base_branch = isempty(base_branch_name) ? "the base branch" : "'$base_branch_name'"
|
||||
|
||||
Reference in New Issue
Block a user