Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Karate Tools] Release 5.0.1 Doc #27

Merged
merged 4 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 0 additions & 57 deletions .github/workflows/code-maven_java-QA_compatibility.yml

This file was deleted.

43 changes: 38 additions & 5 deletions .github/workflows/docs-release.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,51 @@
---
name: docs-release

concurrency: docs-release
concurrency: code-release-${{ inputs.CONCURRENCY_REF }}

on:
pull_request:
types: [closed]
branches: ['main', 'main-*']
paths: ['docs/**', '.github/workflows/docs-**']
workflow_dispatch:
inputs:
BASELINE_BRANCH:
description: 'Baseline branch'
required: true
default: 'main'
RELEASE_LABELS:
description: 'Release labels (comma separated list)'
required: true
default: ''
CONCURRENCY_REF:
description: 'Concurrency reference'
required: false
default: ''

jobs:
dispatch:
name: Docs / Dispatch
if: ${{ github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release-docs') }}
runs-on: ubuntu-24.04
steps:
- name: Trigger / Release Concurrently
if: contains(join(github.event.pull_request.labels.*.name, ', '), 'release-type')
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc
with:
workflow: ${{ github.workflow }}
inputs: '{ "BASELINE_BRANCH": "${{ github.ref }}", "CONCURRENCY_REF": "${{ github.ref }}", "RELEASE_LABELS": "${{ join(github.event.pull_request.labels.*.name, '', '') }}" }'

- name: Trigger / Release Job
if: (!contains(join(github.event.pull_request.labels.*.name, ', '), 'release-type'))
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc
with:
workflow: ${{ github.workflow }}
inputs: '{ "BASELINE_BRANCH": "${{ github.ref }}", "RELEASE_LABELS": "${{ join(github.event.pull_request.labels.*.name, '', '') }}" }'

release:
name: Release Docs Process
if: ${{ github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release-docs') }}
if: ${{ github.event_name == 'workflow_dispatch' && contains(inputs.RELEASE_LABELS, 'release-docs') }}
runs-on: ubuntu-24.04
steps:
- name: Checkout merge commit
Expand Down Expand Up @@ -122,7 +155,7 @@ jobs:
npm run version:release

- name: Release / Force Tag
if: contains(github.event.pull_request.labels.*.name, 'release-docs/force')
if: contains(inputs.RELEASE_LABELS, 'release-docs/force')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: docs
Expand Down Expand Up @@ -175,7 +208,7 @@ jobs:
BASELINE_BRANCH: ${{ github.ref }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_VERSION: ${{ steps.determine-version.outputs.version }}
NO_PUBLISH: ${{ contains(github.event.pull_request.labels.*.name, 'release-docs/no-publish') }}
NO_PUBLISH: ${{ contains(inputs.RELEASE_LABELS, 'release-docs/no-publish') }}
run: |
DEVELOP=${BASELINE_BRANCH/main/develop}
DEVELOP=${DEVELOP#refs/heads/}
Expand All @@ -201,7 +234,7 @@ jobs:
Please create a branch from \`main\` (e.g. \`internal/sync-main-with-develop\`) and then create a pull request against \`develop\` to finish the release process."

- name: Dispatch / Execute Publish Docs
uses: benc-uk/workflow-dispatch@798e70c97009500150087d30d9f11c5444830385
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc
with:
workflow: docs-publish
ref: ${{ github.ref }}
Expand Down
Loading