-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): update ci and (no)secrets usage
- Loading branch information
1 parent
c79b2e5
commit 0f86869
Showing
3 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Get NO_SECRETS env | ||
description: Get "NO_SECRETS" as output | ||
|
||
inputs: | ||
no-secret: | ||
description: The NO_SECRET value | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Temp NO_SECRETS as .env file | ||
shell: bash | ||
run: | | ||
touch ${{ github.run_id }}_${{ github.sha }}.env | ||
echo "${{ inputs.no-secret }}" >> ${{ github.run_id }}_${{ github.sha }}.env | ||
- name: Convert dotenv as output | ||
uses: falti/dotenv-action@v1 | ||
with: | ||
path: ${{ github.run_id }}_${{ github.sha }}.env | ||
log-variables: true | ||
mask-variables: true | ||
|
||
- name: Remove temp .env file | ||
shell: bash | ||
run: rm -rf ${{ github.run_id }}_${{ github.sha }}.env |
This file contains 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
This file contains 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