2022-08-17 16:48:14 +00:00
|
|
|
name: Create envfile
|
|
|
|
|
|
|
|
on: [ push ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
create-envfile:
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-08-17 16:52:30 +00:00
|
|
|
# os: [macos-latest, ubuntu-latest, windows-latest]
|
2022-08-17 16:48:14 +00:00
|
|
|
# os: [macos-latest]
|
|
|
|
# os: [ubuntu-latest, windows-latest]
|
|
|
|
# os: [windows-latest]
|
2022-08-17 16:52:30 +00:00
|
|
|
os: [ubuntu-latest]
|
2022-08-17 16:48:14 +00:00
|
|
|
|
|
|
|
steps:
|
2022-08-17 16:59:17 +00:00
|
|
|
# - name: Make envfile
|
|
|
|
# uses: SpicyPizza/create-envfile@v1.3
|
|
|
|
# with:
|
|
|
|
# envkey_DEBUG: false
|
|
|
|
# envkey_Key_tmdb: ${{ secrets.Key_tmdb }}
|
|
|
|
# file_name: .env
|
|
|
|
# fail_on_empty: false
|
2022-08-17 16:48:14 +00:00
|
|
|
- name: see output
|
2022-08-17 20:12:42 +00:00
|
|
|
run: echo "${{ secrets.KEY_TMDB }}"
|
2022-08-17 20:09:19 +00:00
|
|
|
- name: Extract GH secrets
|
2022-08-17 20:14:17 +00:00
|
|
|
run: 'echo "$KEY_TMDB" > key'
|
2022-08-17 20:09:19 +00:00
|
|
|
shell: bash
|
|
|
|
env:
|
2022-08-17 20:21:27 +00:00
|
|
|
KEY_TMDB: ${{secrets.KEY_TMDB}}
|
|
|
|
- name: Repo secrets
|
2022-08-17 20:28:56 +00:00
|
|
|
run: |
|
2022-08-17 20:34:47 +00:00
|
|
|
echo 'Hello World!'
|
2022-08-17 20:38:43 +00:00
|
|
|
echo '$KEY_TMDB2 > key'
|
2022-08-17 20:40:06 +00:00
|
|
|
echo ${{secrets.KEY_TMDB2}}
|
2022-08-17 20:43:27 +00:00
|
|
|
echo "${{secrets.KEY_TMDB2}}22" > .env
|
2022-08-17 20:41:28 +00:00
|
|
|
cat .env
|
2022-08-17 20:34:47 +00:00
|
|
|
echo 'Hello again!'
|
2022-08-17 20:22:59 +00:00
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
KEY_TMDB2: ${{secrets.KEY_TMDB2}}
|