include the test gitea secrets
Some checks failed
Test Gitea Secrets / print-secret (push) Failing after 2m41s
Some checks failed
Test Gitea Secrets / print-secret (push) Failing after 2m41s
This commit is contained in:
15
.gitea/workflows/test_secret.yaml
Normal file
15
.gitea/workflows/test_secret.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
name: Test Gitea Secrets
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
print-secret:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Print Secret
|
||||
env:
|
||||
# Map the Gitea secret to an environment variable
|
||||
MY_TEST_SECRET: ${{ secrets.MODAL_KEY }}
|
||||
run: |
|
||||
# Use 'echo' to print the variable
|
||||
# Gitea will automatically mask the actual value if it matches a secret
|
||||
echo "The secret value is: $MY_TEST_SECRET"
|
||||
Reference in New Issue
Block a user