Skip to content

Commit

Permalink
add env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
sgmv committed Jun 4, 2024
1 parent c14e64f commit 2f28f91
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/otc-run-acc-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
PASSWORD: ${{ secrets.PASSWORD }}
USERNAME: ${{ secrets.USERNAME }}
USER_DOMAIN_NAME: ${{ secrets.USER_DOMAIN_NAME }}
FUNCTEST_PROJECT_NAME: ${{ secrets.FUNCTEST_PROJECT_NAME }}
FUNCTEST_PROJECT_NAME: ${{ env.FUNCTEST_PROJECT_NAME }}
27 changes: 14 additions & 13 deletions .github/workflows/secrets.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
on: push
name: Show Me the S3cr3tz
on: [push]

jobs:
create-envfile:
debug:
name: Debug
runs-on: ubuntu-latest

steps:
- name: Make envfile
uses: SpicyPizza/[email protected]
with:
envkey_SECRETS: ${{ toJSON(secrets) }}
file_name: .env
fail_on_empty: false
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: cats
path: .
# - name: Check out code
# uses: actions/checkout@v2

- name: Set up secret file
env:
AUTH_URL: ${{ secrets.AUTH_URL }}
USERNAME: ${{ secrets.USERNAME }}
FUNCTEST_PROJECT_NAME: ${{ env.FUNCTEST_PROJECT_NAME }}
run: env && echo -n "${{ secrets.AUTH_URL }}" | xxd -ps

0 comments on commit 2f28f91

Please sign in to comment.