rodrigonull commented on code in PR #2078:
URL:
https://github.com/apache/incubator-kie-kogito-apps/pull/2078#discussion_r1682869604
##########
.github/workflows/publish-jitexecutor-native-rc.yml:
##########
@@ -0,0 +1,169 @@
+name: "Publish jitexecutor-native - Release Candidate"
+
+on:
+ pull_request:
+ branches: ["**"]
+ paths:
+ - ".github/workflows/publish-jitexecutor-native-rc.yml"
+ workflow_dispatch:
+ inputs:
+ release_candidate_version:
+ description: "Release candidate version"
+ required: true
+
+jobs:
+ build_jitexecutor_native:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: true
+ matrix:
+ os: [ubuntu-latest, macos-latest, windows-latest]
+
+ steps:
+ - name: Set version
+ id: version
+ run: |
+ if [ ${{ github.event_name }} == "pull_request" ]; then
+ echo
"REPOSITORY=${{github.event.pull_request.head.repo.full_name}}" >>
"$GITHUB_OUTPUT"
+ echo "REF=${{github.event.pull_request.head.ref}}" >>
"$GITHUB_OUTPUT"
+ echo "PROJECT_VERSION=999-SNAPSHOT" >> "$GITHUB_OUTPUT"
+ else
+ VERSION="${{ github.event.inputs.release_candidate_version }}"
+ echo "REPOSITORY=apache/incubator-kie-kogito-apps" >>
"$GITHUB_OUTPUT"
+ echo "REF=${VERSION//-SNAPSHOT/}" >> "$GITHUB_OUTPUT"
+ echo "PROJECT_VERSION=$VERSION" >> "$GITHUB_OUTPUT"
+ fi
+ shell: bash
+
+ - name: "Set long paths for Windows"
+ if: runner.os == 'Windows'
+ run: git config --system core.longpaths true
+
+ - name: "Checkout kie-kogito-apps"
+ uses: actions/checkout@v4
+ with:
+ repository: ${{ steps.version.outputs.REPOSITORY }}
+ ref: ${{ steps.version.outputs.REF }}
+
+ - name: "Set up Maven"
+ uses: stCarolas/setup-maven@v5
Review Comment:
Yes, they are allowed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]