quarkus-main rebase #5
This file contains 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: quarkus-main rebase | |
on: | |
workflow_dispatch: | |
schedule: | |
# Run every day at 2AM | |
- cron: '0 2 * * *' | |
env: | |
LANG: en_US.UTF-8 | |
ISSUE_ID: 1287 | |
DEPENDENCY_SHORT_NAME: quarkus | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
rebase-quarkus-main: | |
if: github.repository == 'quarkiverse/quarkus-cxf' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test Update the status of issue ${{ env.ISSUE_ID }} | |
shell: bash | |
run: | | |
curl --request PATCH \ | |
--url ${{ github.api_url }}/repos/${{ github.repository }}/issues/${{ env.ISSUE_ID }} \ | |
--header 'Authorization: token ${{ secrets.QUARKIVERSEBOT_TOKEN }}' \ | |
--header 'Content-Type: application/json' \ | |
--data '{"state": "open"}' | |
- name: rebase-dependency-main-branch | |
uses: ./.github/actions/rebase-dependency-main-branch | |
id: rebase-dependency-main-branch | |
with: | |
java-version: ${{ env.JAVA_VERSION }} | |
dependency-git-repo-url: https://github.com/quarkusio/quarkus.git | |
dependency-short-name: ${{ env.DEPENDENCY_SHORT_NAME }} | |
issue-id: ${{ env.ISSUE_ID }} | |
token: "${{ secrets.QUARKIVERSEBOT_TOKEN }}" | |
additional-maven-args: '-DskipTests -Dcheckstyle.skip' | |
- name: build-and-run-jvm-tests | |
uses: ./.github/actions/build-and-run-jvm-tests | |
with: | |
java-version: ${{ env.JAVA_VERSION }} | |
- name: push origin ${{ env.DEPENDENCY_SHORT_NAME }}-main -f | |
shell: bash | |
run: | | |
push origin ${{ env.DEPENDENCY_SHORT_NAME }}-main -f | |
- name: Update issue ${{ env.ISSUE_ID }} | |
if: ${{ failure() }} | |
uses: ./.github/actions/update-issue | |
with: | |
issue-id: "${{ env.ISSUE_ID }}" | |
add-message: "Build with ${{ env.DEPENDENCY_SHORT_NAME }} ${{ steps.rebase-dependency-main-branch.outputs.dependency-commit }} failed in ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | |
new-state: "open" | |
- name: Update issue ${{ env.ISSUE_ID }} | |
if: ${{ success() }} | |
uses: ./.github/actions/update-issue | |
with: | |
issue-id: "${{ env.ISSUE_ID }}" | |
token: "${{ secrets.QUARKIVERSEBOT_TOKEN }}" | |
new-state: "closed" |