second #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Private Key | |
| on: | |
| push: | |
| branches: | |
| - test/secrets-variable-bis # or whatever branch name you want to use | |
| jobs: | |
| test-key: | |
| runs-on: ubuntu-latest | |
| environment: testnets # or whichever environment you want to test with | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set private key | |
| run: | | |
| echo "PROD_PRIVATE_KEY=${{ secrets.BELLECOUR_PRIVATE_KEY }}" >> $GITHUB_ENV | |
| - name: Test private key | |
| run: | | |
| echo "PROD_PRIVATE_KEY is set: ${{ env.PROD_PRIVATE_KEY != '' }}" | |
| if [ -n "$PROD_PRIVATE_KEY" ]; then | |
| echo "Private key is set and not empty" | |
| else | |
| echo "Private key is not set or empty" | |
| exit 1 | |
| fi | |
| npm run testPvk | |