2022-08-17 18:48:14 +02:00
|
|
|
name: Create envfile
|
|
|
|
|
|
|
|
on: [ push ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
create-envfile:
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-08-17 18:52:30 +02:00
|
|
|
# os: [macos-latest, ubuntu-latest, windows-latest]
|
2022-08-17 18:48:14 +02:00
|
|
|
# os: [macos-latest]
|
|
|
|
# os: [ubuntu-latest, windows-latest]
|
|
|
|
# os: [windows-latest]
|
2022-08-17 18:52:30 +02:00
|
|
|
os: [ubuntu-latest]
|
2022-08-17 18:48:14 +02:00
|
|
|
|
|
|
|
steps:
|
2022-08-17 18:59:17 +02: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 18:48:14 +02:00
|
|
|
- name: see output
|
2022-08-17 22:12:42 +02:00
|
|
|
run: echo "${{ secrets.KEY_TMDB }}"
|
2022-08-17 22:09:19 +02:00
|
|
|
- name: Extract GH secrets
|
2022-08-17 22:14:17 +02:00
|
|
|
run: 'echo "$KEY_TMDB" > key'
|
2022-08-17 22:09:19 +02:00
|
|
|
shell: bash
|
|
|
|
env:
|
2022-08-17 22:21:27 +02:00
|
|
|
KEY_TMDB: ${{secrets.KEY_TMDB}}
|
|
|
|
- name: Repo secrets
|
2022-08-17 22:28:56 +02:00
|
|
|
run: |
|
2022-08-17 22:34:47 +02:00
|
|
|
echo 'Hello World!'
|
2022-08-17 22:38:43 +02:00
|
|
|
echo '$KEY_TMDB2 > key'
|
2022-08-17 22:40:06 +02:00
|
|
|
echo ${{secrets.KEY_TMDB2}}
|
2022-08-17 22:34:47 +02:00
|
|
|
echo 'Hello again!'
|
2022-08-17 22:22:59 +02:00
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
KEY_TMDB2: ${{secrets.KEY_TMDB2}}
|