Skip to content

Add Operand

Add Operand #9

Workflow file for this run

name: Add Operand
on:
workflow_call:
inputs:
image:
description: "The FQN of the Operand image"
required: true
type: string
version:
description: "The upstream-version of the Operand"
type: string
ref:
description: "The git reference to checkout"
required: false
default: main
type: string
repository:
description: "The git repository to checkout"
required: false
type: string
workflow_dispatch:
inputs:
image:
description: "The FQN of the Operand image"
required: true
type: string
version:
description: "The upstream-version of the Operand"
type: string
ref:
description: "The git reference to checkout"
required: false
default: main
type: string
repository:
description: "The git repository to checkout"
required: false
type: string
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
repository: ${{ inputs.repository }}
- name: Upstream Version
run: |
if [ "${{ inputs.version }}" = "" ]; then
VERSION=${{ inputs.version }}
echo VERSION=${VERSION%.Final} >> ${GITHUB_ENV}
else
echo VERSION=${{ inputs.version }} >> ${GITHUB_ENV}
fi
- name: Add Operand
run: ./scripts/ci/add_operand.sh
env:
IMAGE: ${{ inputs.image }}
- name: Commit changes and create tag
run: |
git config user.email "[email protected]"
git config user.name "Infinispan"
git add config/manager/manager.yaml documentation/asciidoc/topics/attributes/community-attributes.adoc documentation/asciidoc/topics/supported_operands/
git commit -m "Add Operand ${{ inputs.version }}"
- name: Push Git changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ inputs.ref }}
repository: ${{ inputs.repository }}