Skip to content

Add keycloak and oidc #3571

Add keycloak and oidc

Add keycloak and oidc #3571

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- alpha
- beta
- master
- renovate/**
jobs:
prepare_jobs:
name: "Prepare: job optimization"
runs-on: ubuntu-latest
outputs:
pr_found: ${{ steps.pr.outputs.pr_found }}
steps:
- name: Get current PR
id: pr
uses: 8BitJonny/[email protected]
with:
filterOutClosed: true
sha: ${{ github.event.pull_request.head.sha }}
release_semantic_dry:
needs: prepare_jobs
name: Release (semantic, dry)
uses: dargmuesli/github-actions/.github/workflows/[email protected]
if: needs.prepare_jobs.outputs.pr_found == 'false' || github.event_name == 'pull_request'
secrets:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
DRY_RUN: true
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: checkout
# From https://github.com/actions/checkout/issues/438#issuecomment-1114110354
# Required to fetch enough depth for diffs with master in the pre-commit step.
# Alternative is to use the checkout action with fetch-depth: 0, but that would
# fetch the whole history, potentially slowing down the CI pipeline.
run: |
commits=${{ github.event.pull_request.commits }}
if [[ -n "$commits" ]]; then
# Prepare enough depth for diffs with master
git fetch --depth="$(( commits + 1 ))"
fi
- uses: actions/setup-python@v3
with:
python-version: '3.11'
- uses: pre-commit/[email protected]
with:
extra_args: '--from-ref origin/master --to-ref ${{ github.sha }}'
build:
name: Build
uses: dargmuesli/github-actions/.github/workflows/[email protected]
needs: release_semantic_dry
with:
TAG: ${{ needs.release_semantic_dry.outputs.new_release_version }}
release_semantic:
needs: build
name: Release (semantic)
uses: dargmuesli/github-actions/.github/workflows/[email protected]
permissions:
contents: write
secrets:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}