Skip to content

🚀 [Feature]: Manage Atlassian Confluence Cloud from PowerShell #219

🚀 [Feature]: Manage Atlassian Confluence Cloud from PowerShell

🚀 [Feature]: Manage Atlassian Confluence Cloud from PowerShell #219

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:
# Pinned to the TestSecrets/TestVariables feature branch of Process-PSModule (PR #365).
# Repin to the released tag once that change ships.
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@5ae2f4cfec688512e4889c014493dd581bfe7c38 # feat/52-test-secrets
secrets:
# PowerShell Gallery API key used to publish the module.
APIKey: ${{ secrets.APIKey }}
# Secrets the module's tests need, exposed as environment variables (masked). Only what the
# tests require is passed - secrets: inherit is intentionally not used. The integration tests
# are skipped when CONFLUENCE_API_TOKEN is not available (forks / PRs without access).
TestSecrets: >-
{
"CONFLUENCE_API_TOKEN": ${{ toJSON(secrets.CONFLUENCE_API_TOKEN) }}
}
with:
# Non-secret configuration the module's tests need, exposed as environment variables (not masked).
TestVariables: >-
{
"CONFLUENCE_API_BASE_URI": ${{ toJSON(vars.CONFLUENCE_API_BASE_URI) }},
"CONFLUENCE_USERNAME": ${{ toJSON(vars.CONFLUENCE_USERNAME) }},
"CONFLUENCE_SPACE_KEY": ${{ toJSON(vars.CONFLUENCE_SPACE_KEY) }}
}