implement NoTLS (--plaintext) support #108
Workflow file for this run
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
name: templates | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- 'assets/**' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'assets/**' | |
env: | |
# when the workflow is triggered by a pull_request event, the REF_NAME is of the form | |
# '<pr-#>/merge'. The actual branch name is in HEAD_REF but that variables isn't | |
# defined for 'push' events, hence the ternary assignment. | |
SOURCE_BRANCH: ${{ github.event_name == 'push' && github.ref_name || github.head_ref }} | |
jobs: | |
trigger: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Read Configuration | |
uses: hashicorp/vault-action@v3 | |
id: vault | |
with: | |
url: https://vault.eng.aserto.com/ | |
token: ${{ secrets.VAULT_TOKEN }} | |
secrets: | | |
kv/data/github "READ_WRITE_TOKEN" | READ_WRITE_TOKEN; | |
- | |
name: Dispatch to Topaz Website | |
uses: lasith-kg/dispatch-workflow@v2 | |
with: | |
dispatch-method: workflow_dispatch | |
owner: aserto-dev | |
repo: topaz-website | |
ref: main | |
workflow: update_templates.yaml | |
token: ${{ env.READ_WRITE_TOKEN }} | |
workflow-inputs: | | |
{ | |
"branch": "${{ env.SOURCE_BRANCH }}" | |
} |