We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b27527f commit 36a5910Copy full SHA for 36a5910
1 file changed
.github/workflows/pr-comment.yml
@@ -13,18 +13,10 @@ jobs:
13
steps:
14
- name: Check out code
15
uses: actions/checkout@v4
16
- with:
17
- fetch-depth: 2
18
-
19
- - name: Get prev commit
20
- run: echo "PREV_COMMIT=$(git --no-pager log --skip=1 --max-count=1 | grep commit | cut -d' ' -f2)" >> $GITHUB_ENV
21
22
- - name: Get prev file
23
- run: echo "PREV_FILE=$(echo https://raw.githubusercontent.com/oasdiff/github-demo/${{ env.PREV_COMMIT }}/simple.yaml)" >> $GITHUB_ENV
24
25
- name: Post oasdiff PR comment
26
uses: oasdiff/oasdiff-action/pr-comment@main
27
with:
28
- base: ${{ env.PREV_FILE }}
+ base: https://raw.githubusercontent.com/${{ github.repository }}/${{ github.base_ref }}/simple.yaml
29
revision: simple.yaml
30
oasdiff-token: 0634345d-02fb-43df-b56a-68fc22253621
0 commit comments