Skip to content

Commit

Permalink
feat: check for DIPLODOC_STORAGE_BUCKET secret
Browse files Browse the repository at this point in the history
  • Loading branch information
martyanovandrey authored and 3y3 committed Oct 22, 2023
1 parent f26796c commit a0902da
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- name: "Check is DIPLODOC_STORAGE_BUCKET secret exists"
env:
storage-bucket: ${{ secrets.DIPLODOC_STORAGE_BUCKET }}
if: ${{ env.storage-bucket == '' }}
run: 'echo "::error:: The secret \"DIPLODOC_STORAGE_BUCKET\" has not been made; please check that all necessary secrets and variables are installed or follow the link https://diplodoc.com/quickstart" && exit 1'
- name: Checkout
uses: actions/checkout@v3
- name: Release
Expand All @@ -19,4 +24,4 @@ jobs:
storage-endpoint: ${{ vars.DIPLODOC_STORAGE_ENDPOINT }}
storage-access-key-id: ${{ secrets.DIPLODOC_ACCESS_KEY_ID }}
storage-secret-access-key: ${{ secrets.DIPLODOC_SECRET_ACCESS_KEY }}
storage-region: ${{ vars.DIPLODOC_STORAGE_REGION }}
storage-region: ${{ vars.DIPLODOC_STORAGE_REGION }}

0 comments on commit a0902da

Please sign in to comment.