File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 9
9
10
10
jobs :
11
11
diffs :
12
- env :
13
- # Last commit from rename-module workflow job to be included in `main`
14
- LIBEVM_BASE : 0b56af5a01b8a0c6fc9d60247bb79ffd03d1bcfd
15
12
runs-on : ubuntu-latest
16
13
steps :
17
14
- uses : actions/checkout@v4
18
15
with :
19
16
fetch-depth : 0 # everything
20
17
fetch-tags : true
21
18
19
+ - name : Find base commit hash
20
+ id : base-commit
21
+ run : echo "LIBEVM_BASE=$(git rev-list --author "github-actions\[bot\]" --grep "rename Go module" -n 1 origin/main)" >> "$GITHUB_OUTPUT"
22
+
22
23
- name : Color-blindness a11y
23
24
run :
24
25
| # https://davidmathlogic.com/colorblind/#%23D81B60-%231E88E5-%23FFC107-%23004D40:~:text=8%20pairs%20of%20contrasting%20colors
25
26
git config color.diff.old "#DC3220";
26
27
git config color.diff.new "#005AB5";
27
28
28
- - name : git diff { LIBEVM_BASE}
29
+ - name : git diff ${{ steps.base-commit.outputs. LIBEVM_BASE } }
29
30
run : |
30
31
git diff --diff-filter=a --word-diff --unified=0 --color=always \
31
- "${ LIBEVM_BASE}" \
32
+ ${{ steps.base-commit.outputs. LIBEVM_BASE }} \
32
33
':(exclude).golangci.yml' \
33
34
':(exclude).github/**' \
34
35
':(exclude)README.md';
35
36
36
- - name : git diff { LIBEVM_BASE}..main
37
+ - name : git diff ${{ steps.base-commit.outputs. LIBEVM_BASE } }..main
37
38
run : |
38
39
git checkout main --;
39
40
git diff --diff-filter=a --word-diff --unified=0 --color=always \
40
- "${LIBEVM_BASE}" \
41
+ "${{ steps.base-commit.outputs. LIBEVM_BASE } }" \
41
42
':(exclude).golangci.yml' \
42
43
':(exclude).github/**' \
43
44
':(exclude)README.md';
Original file line number Diff line number Diff line change 71
71
env :
72
72
GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
73
73
with :
74
+ # WARNING: mirror any change to the commit_message value below in libevm-delta.yml
74
75
commit_message : " [AUTO] rename Go module + update internal import paths\n\n Workflow: ${{ steps.vars.outputs.WORKFLOW_HASH }} on branch ${{ github.ref_name }}"
75
76
repo : ${{ github.repository }}
76
77
branch : ${{ steps.vars.outputs.DEST_BRANCH }}
You can’t perform that action at this time.
0 commit comments