Skip to content

Add Azure Credentials #3

Add Azure Credentials

Add Azure Credentials #3

Workflow file for this run

name: CI
on:
workflow_call:
inputs:
setup-vault:
required: false
type: boolean
default: false
release:
required: false
type: boolean
default: false
version:
required: false
type: string
secrets: ${{ toJson(secrets) }}
jobs:
get-changed-files:
name: Get Changed Files
uses: salt-extensions/central-artifacts/.github/workflows/get-changed-files.yml@main
changed-files-debug:
name: Changed Files Debug Output
runs-on: ubuntu-latest
if: always()
needs:
- get-changed-files
steps:
- name: Echo Changed Files Output
run: echo "${{ toJSON(needs.get-changed-files.outputs.changed-files) }}"
pre-commit:
name: Pre-Commit
uses: salt-extensions/central-artifacts/.github/workflows/pre-commit-action.yml@main
needs:
- get-changed-files
with:
changed-files: ${{ needs.get-changed-files.outputs.changed-files }}
test:
name: Test
needs:
- pre-commit
# uses: salt-extensions/central-artifacts/.github/workflows/test-action.yml@main
uses: M3GH4NN/central-artifacts/.github/workflows/test-action.yml@credentials
with:
setup-vault: ${{ inputs.setup-vault }}
secrets: ${{ toJson(secrets) }}

Check failure on line 51 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

invalid value for secrets. Expected "inherit" keyword or explicit map of secrets
docs:
name: Docs
needs:
- pre-commit
uses: salt-extensions/central-artifacts/.github/workflows/docs-action.yml@main
build-python-package:
name: Python Package
if: ${{ inputs.release && success() }}
uses: salt-extensions/central-artifacts/.github/workflows/package-action.yml@main
needs:
- pre-commit
with:
version: "${{ inputs.version }}"
deploy-python-package-test-pypi:
name: Deploy Python Package (Test PyPI)
uses: salt-extensions/central-artifacts/.github/workflows/deploy-package-action.yml@main
if: ${{ inputs.release && success() }}
needs:
- test
- docs
- build-python-package
secrets: inherit
with:
version: "${{ inputs.version }}"
deploy-python-package:
name: Deploy Python Package (PyPI)
uses: salt-extensions/central-artifacts/.github/workflows/deploy-package-action.yml@main
if: ${{ inputs.release && success() }}
needs:
- deploy-python-package-test-pypi
secrets: inherit
with:
test: false
version: "${{ inputs.version }}"
set-pipeline-exit-status:
# This step is just so we can make github require this step, to pass checks
# on a pull request instead of requiring all
name: Set the CI Pipeline Exit Status
runs-on: ubuntu-latest
if: always()
needs:
- test
- docs
- build-python-package
- deploy-python-package-test-pypi
- deploy-python-package
steps:
- name: Download Exit Status Files
if: always()
uses: actions/download-artifact@v3
with:
name: exitstatus
path: exitstatus
- name: Delete Exit Status Artifacts
if: always()
uses: geekyeggo/delete-artifact@v2
with:
name: exitstatus
failOnError: false
- name: Set Pipeline Exit Status
run: |
tree exitstatus
grep -RE 'failure|cancelled' exitstatus/ && exit 1 || exit 0
- name: Done
if: always()
run:
echo "All workflows finished"
####