Skip to content

Commit a2ae8f2

Browse files
authored
Merge pull request #2231 from KaiyiLiu1234/xcrypto-check
chore: enable check-x-crypto workflow
2 parents 2da6001 + 1b348c4 commit a2ae8f2

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed
Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: Check x/crypto
22

33
on:
4-
workflow_dispatch:
5-
# pull_request_target:
4+
pull_request:
65

76
jobs:
87
check-x-crypto-deps:
@@ -19,6 +18,11 @@ jobs:
1918
repository: ${{ github.event.pull_request.head.repo.full_name }}
2019
fetch-depth: 0
2120

21+
- name: fetch base branch
22+
run: |
23+
git fetch https://github.com/${{ github.event.pull_request.base.repo.full_name }}.git \
24+
${{ github.event.pull_request.base.ref }}:${{ github.event.pull_request.base.ref }}
25+
2226
- name: setup go
2327
uses: actions/[email protected]
2428
with:
@@ -30,14 +34,3 @@ jobs:
3034
with:
3135
base_ref: ${{ github.event.pull_request.base.ref }}
3236
head_sha: ${{ github.event.pull_request.head.sha }}
33-
34-
- name: Append run info to x/crypto report
35-
run: |
36-
echo "" >> /tmp/check-xcrypto-report.txt
37-
echo "_(execution **${{ github.run_id }}**)_" >> /tmp/check-xcrypto-report.txt
38-
39-
- name: Comment x/crypto dependencies to PR
40-
uses: thollander/actions-comment-pull-request@v3
41-
with:
42-
file-path: /tmp/check-xcrypto-report.txt
43-
comment-tag: xcrypto-check

0 commit comments

Comments
 (0)