Process-PSModule #292
This file contains hidden or 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: Process-PSModule | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| pull_request: | |
| branches: | |
| - main | |
| types: | |
| - closed | |
| - opened | |
| - reopened | |
| - synchronize | |
| - labeled | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| statuses: write | |
| pages: write | |
| id-token: write | |
| jobs: | |
| Process-PSModule: | |
| uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@ea19a3eb1293246d1b00e4faae1544442c3be0ec # v6.1.1 | |
| secrets: | |
| APIKEY: ${{ secrets.APIKEY }} | |
| # Showcase: send data down to the module tests (see tests/Environment.Tests.ps1). | |
| # TestData is a single-line JSON object with optional "secrets" (masked in logs) and | |
| # "variables" (not masked) maps. Every entry is exposed to the module test jobs as | |
| # $env:<name>. Reference a repository secret with the direct "${{ secrets.NAME }}" | |
| # form (single-line values, no quotes or backslashes) and a repository variable with | |
| # ${{ toJSON(vars.NAME) }} so any characters are encoded safely. The folded ">-" scalar | |
| # keeps the whole value on one line so GitHub registers a single log mask. Omit | |
| # TestData entirely when your tests need no data. | |
| TestData: >- | |
| { "secrets": { "TEST_SECRET": "${{ secrets.TEST_SECRET }}" }, | |
| "variables": { "TEST_VARIABLE": ${{ toJSON(vars.TEST_VARIABLE) }} } } |