Skip to content

IAM-224-Oauth interface implementation #1

IAM-224-Oauth interface implementation

IAM-224-Oauth interface implementation #1

name: Pull Request
on:
workflow_call:
inputs:
charm-path:
description: "Path to the charm we want to publish. Defaults to the current working directory."
default: '.'
required: false
type: string
provider:
description: "The provider to choose for either machine or k8s tests ('lxd' or 'microk8s')"
default: 'microk8s'
required: false
type: string
ip-range-start:
type: string
description: "The first IP address in the address pool for the load balancer to use"
required: false
default: 10.64.140.43
ip-range-end:
type: string
description: "The last IP address in the address pool for the load balancer to use"
required: false
default: 10.64.140.44
secrets:
CHARMHUB_TOKEN:
required: false
jobs:
ci-ignore:
name: Check against ignorelist
runs-on: ubuntu-latest
outputs:
any_modified: ${{ steps.echo-changes.outputs.any_modified }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }} # To be compatible with PRs from forks
fetch-depth: 0
- name: Determine changed files in the PR
id: changed-files
uses: tj-actions/changed-files@v38
with:
files_ignore: |
README.md
CONTRIBUTING.md
INTEGRATING.md
CODEOWNERS
LICENSE
icon.svg
.gitignore
.github/**
- name: Echo changed files
id: echo-changes
run: |
echo "Changes made: ${{ steps.changed-files.outputs.any_modified }}"
echo "Modified files: ${{ steps.changed-files.outputs.all_modified_files }}"
echo "any_modified=${{ steps.changed-files.outputs.any_modified }}" >> $GITHUB_OUTPUT
quality-checks:
name: Quality Checks
needs:
- ci-ignore
if: needs.ci-ignore.outputs.any_modified == 'true'
uses: ./.github/workflows/_charm-quality-checks.yaml@main

Check failure on line 68 in .github/workflows/charm-pull-request.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/charm-pull-request.yaml

Invalid workflow file

invalid value workflow reference: cannot specify version when calling local workflows
secrets: inherit
with:
charm-path: ${{ inputs.charm-path }}
provider: ${{ inputs.provider }}
ip-range-start: ${{ inputs.ip-range-start }}
ip-range-end: ${{ inputs.ip-range-end }}