Add Operand #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Add Operand | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| ref: | |
| description: "The git reference to checkout" | |
| required: true | |
| default: main | |
| type: string | |
| repository: | |
| description: "The git repository to checkout" | |
| required: false | |
| type: string | |
| #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: test_release | |
| # type: string | |
| # repository: | |
| # description: "The git repository to checkout" | |
| # required: false | |
| # type: string | |
| jobs: | |
| add-operand: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ inputs.ref }} | |
| repository: ${{ inputs.repository }} | |
| token: ${{ secrets.PAT_TOKEN }} | |
| #- name: Determine Upstream Version | |
| # run: | | |
| # if [[ -z "${{ inputs.version }}" ]]; then | |
| # IMAGE=${{ inputs.image }} | |
| # TAG=${IMAGE#*:} | |
| # echo VERSION=${TAG%.Final} >> ${GITHUB_ENV} | |
| # else | |
| # echo VERSION=${{ inputs.version }} >> ${GITHUB_ENV} | |
| # fi | |
| # | |
| #- name: Add Operand | |
| # run: ./scripts/ci/add_operand.sh | |
| # env: | |
| # IMAGE: ${{ inputs.image }} | |
| # VERSION: ${{ env.VERSION }} | |
| # | |
| #- name: Commit changes and push to repository | |
| # run: | | |
| # git config user.email "infinispan@infinispan.org" | |
| # 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 ${{ env.VERSION }}" | |
| # git push | |
| - name: Test repository-dispatch | |
| run : echo "Testing repository dispatch" | |
| - name: Trigger next workflow if branch is test_release and success | |
| if: success() && inputs.ref == 'test_release' | |
| uses: peter-evans/repository-dispatch@v3 | |
| with: | |
| token: ${{ secrets.PAT_TOKEN }} | |
| repository: pminz/infinispan-operator | |
| event-type: trigger-next-workflow | |
| client-payload: | | |
| { | |
| "ref": "${{ github.ref_name }}", | |
| "repository": "${{ inputs.repository }}" | |
| } |