[CI] Update Github workflows for 1.0.x

This commit is contained in:
Chris Bono
2024-01-25 18:29:09 -06:00
parent 645e4480d9
commit 917c293152
5 changed files with 5 additions and 50 deletions

View File

@@ -1,25 +0,0 @@
name: CI Dispatcher (0.2.x)
on:
schedule:
- cron: '0 11 * * *' # Once per day at 11am UTC
workflow_dispatch:
jobs:
dispatch_ci_workflow:
name: Dispatch CI workflow
if: github.repository == 'spring-projects/spring-pulsar'
strategy:
matrix:
# List of active maintenance branches.
branch: [ 0.2.x ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Dispatch
env:
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
run: gh workflow run ci.yml -r ${{ matrix.branch }}

View File

@@ -3,8 +3,7 @@ name: CI PRs
on:
pull_request:
branches:
- 'main'
- '0.2.x'
- '1.0.x'
paths-ignore:
- '.github/**'
@@ -30,7 +29,7 @@ jobs:
bootVersion=$(cat gradle/libs.versions.toml | grep "spring-boot = \"" | cut -d '"' -f2)
echo "boot_version=$bootVersion" >>$GITHUB_OUTPUT
build_and_verify:
name: Build and Verify
name: Build and Verify (1.0.x)
needs: [prerequisites]
runs-on: ubuntu-latest
if: needs.prerequisites.outputs.runjobs

View File

@@ -3,12 +3,9 @@ name: CI
on:
push:
branches:
- 'main'
- '0.2.x'
- '1.0.x'
paths-ignore:
- '.github/**'
schedule:
- cron: '0 10 * * *' # Once per day at 10am UTC
workflow_dispatch:
env:
@@ -43,7 +40,7 @@ jobs:
bootVersion=$(cat gradle/libs.versions.toml | grep "spring-boot = \"" | cut -d '"' -f2)
echo "boot_version=$bootVersion" >>$GITHUB_OUTPUT
build_jdk_17:
name: Build (JDK 17)
name: Build (1.0.x w/ JDK 17)
needs: [prerequisites]
runs-on: ubuntu-latest
if: needs.prerequisites.outputs.runjobs
@@ -99,7 +96,7 @@ jobs:
config-path: .github/trivy-to-sarif.yaml
upload-results: true
deploy_artifacts:
name: Deploy Artifacts
name: Deploy Artifacts (1.0.x)
needs: [build_jdk_17, check_samples, scan]
runs-on: ubuntu-latest
steps:

View File

@@ -1,8 +1,5 @@
name: Deploy Docs Dispatcher (Antora)
on:
# push:
# branches-ignore: [ gh-pages ]
# tags: '**'
workflow_dispatch:
permissions:
actions: write

View File

@@ -1,13 +0,0 @@
name: Sandbox Github Actions Testing Area
on:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-18.04
steps:
- name: Show environment v1
run: env | grep ^GITHUB
- name: Show ref v1
run: echo "===============> Version from $GITHUB_REF"