Skip to content

Commit 1891c93

Browse files
committed
workflows: Post the link to the spec
Signed-off-by: Oleg Kulachenko <[email protected]>
1 parent f9671ad commit 1891c93

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/neofs.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,15 @@ jobs:
1313
- name: Build Docker image
1414
run: make image
1515

16+
- name: Get pdf file name
17+
run: |
18+
echo "PDF_FILE_NAME=$(make pdf_file_name)" >> $GITHUB_ENV
19+
1620
- name: Get pdf file
1721
run: make docker/pdf
1822

1923
- name: Publish to NeoFS
24+
id: publish_spec_pdf_to_neofs
2025
uses: nspcc-dev/[email protected]
2126
with:
2227
NEOFS_WALLET: ${{ secrets.NEOFS_WALLET }}
@@ -25,3 +30,15 @@ jobs:
2530
NEOFS_HTTP_GATE: ${{ vars.NEOFS_HTTP_GATE }}
2631
STORE_OBJECTS_CID: ${{ vars.STORE_OBJECTS_CID }}
2732
PATH_TO_FILES_DIR: output
33+
34+
- name: Post the link to the spec
35+
env:
36+
CONTAINER_URL: ${{ steps.publish_spec_pdf_to_neofs.outputs.OUTPUT_CONTAINER_URL }}
37+
SPEC_FILE: ${{ env.PDF_FILE_NAME }}
38+
uses: Sibz/github-status-action@v1
39+
with:
40+
authToken: ${{secrets.GITHUB_TOKEN}}
41+
context: 'Neofs spec pdf'
42+
state: 'success'
43+
sha: ${{github.event.pull_request.head.sha || github.sha}}
44+
target_url: ${{ env.CONTAINER_URL }}/${{ env.SPEC_FILE }}

0 commit comments

Comments
 (0)