From 446364561e47e75593a8477c3dc84dc0ab37feaf Mon Sep 17 00:00:00 2001 From: Ryan Freeman Date: Tue, 20 Aug 2024 22:13:15 +0100 Subject: [PATCH] update workflow --- .gitea/workflows/decrypt_secrets.yml | 18 ++++++++++-------- .gitignore | 3 ++- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/decrypt_secrets.yml b/.gitea/workflows/decrypt_secrets.yml index 5a83322..19b7246 100644 --- a/.gitea/workflows/decrypt_secrets.yml +++ b/.gitea/workflows/decrypt_secrets.yml @@ -11,11 +11,13 @@ jobs: run: ./decrypt_secrets.sh env: SECRET_PASSPHRASE: ${{ secrets.SECRET_PASSPHRASE }} - # This command is just an example to show your secret being printed - # Ensure you remove any print statements of your secrets. GitHub does - # not hide secrets that use this workaround. - - name: Test printing your secret (Remove this step in production) - run: cat ./secrets - - name: List files in the repository - run: | - ls ${{ gitea.workspace }} \ No newline at end of file + + PrintSecrets: + needs: DecryptSecrets + runs-on: ubuntu-latest + steps: + - name: Test printing your secret (Remove this step in production) + run: cat ${{ gitea.workspace }}/secrets + - name: List files in the repository + run: | + ls ${{ gitea.workspace }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 8c300ca..670e80a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .env .idea/ -secrets \ No newline at end of file +secrets +passphrase \ No newline at end of file