-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
468 changed files
with
7,959 additions
and
8,745 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Update hugo-geekdoc | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * SAT' | ||
|
||
jobs: | ||
update-mvn-property: | ||
runs-on: ubuntu-latest | ||
name: Update Maven property using the latest release version (tag) of a GitHub repository | ||
|
||
env: | ||
DEP_PROP: hugo-geekdoc.version | ||
DEP_REPO: thegeeklab/hugo-geekdoc | ||
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
cache: 'maven' | ||
|
||
- name: Get latest release version | ||
id: lr | ||
uses: pozetroninc/github-action-get-latest-release@master | ||
with: | ||
repository: ${{ env.DEP_REPO }} | ||
|
||
- name: Apply latest release version on Maven property | ||
run: > | ||
mvn -B -ntp versions:set-property | ||
-Dproperty=${{ env.DEP_PROP }} | ||
-DnewVersion=${{ steps.lr.outputs.release }} | ||
-DgenerateBackupPoms=false | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
commit-message: Bump ${{ env.DEP_PROP }} to ${{ steps.lr.outputs.release }} | ||
title: Bump ${{ env.DEP_PROP }} to ${{ steps.lr.outputs.release }} | ||
body: ${{ steps.lr.outputs.description }} | ||
delete-branch: true | ||
branch: PR/maven/${{ github.ref_name }}/${{ env.DEP_PROP }}-${{ steps.lr.outputs.release }} | ||
labels: dependencies,java | ||
|
||
- name: Create summary | ||
if: ${{ steps.cpr.outputs.pull-request-number }} | ||
run: | | ||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" >> $GITHUB_STEP_SUMMARY | ||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" >> $GITHUB_STEP_SUMMARY |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: [ push, pull_request ] | |
|
||
jobs: | ||
build-and-test-job: | ||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | ||
if: github.event_name == 'pull_request' || startsWith(github.ref, 'refs/heads/develop') || startsWith(github.ref, 'refs/tags/v') | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -16,7 +16,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
|
@@ -28,11 +28,31 @@ jobs: | |
java-version: ${{ matrix.java }} | ||
cache: 'maven' | ||
|
||
- name: Pre-download dependencies with Maven | ||
run: mvn -U -B -ntp dependency:go-offline | ||
|
||
- name: Build and (headless) test with Maven | ||
uses: smithki/[email protected] | ||
with: | ||
run: mvn -U -B -ntp package | ||
|
||
auto-merge-job: | ||
needs: build-and-test-job | ||
if: startsWith(github.repository, 'nbbrd/') && github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
name: Auto-merge on dependabot PR | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Merge PR | ||
run: gh pr merge --auto --rebase "$PR_URL" | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
|
||
snapshot-job: | ||
needs: build-and-test-job | ||
if: startsWith(github.repository, 'nbbrd/') && startsWith(github.ref, 'refs/heads/develop') | ||
|
@@ -46,7 +66,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
|
@@ -96,7 +116,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
|
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
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
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
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
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
Oops, something went wrong.