-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #396 from mshima/generator-jhipster-8.7.1
update generator-jhipster to v8.7.1
- Loading branch information
Showing
57 changed files
with
3,927 additions
and
4,366 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,39 +1,39 @@ | ||
name: Copyright Update | ||
on: | ||
schedule: | ||
- cron: '0 0 31 12 *' # Repeats December 31st every year | ||
schedule: | ||
- cron: '0 0 31 12 *' # Repeats December 31st every year | ||
|
||
permissions: | ||
contents: read | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
permissions: | ||
contents: write # for peter-evans/create-pull-request to create branch | ||
pull-requests: write # for peter-evans/create-pull-request to create a PR | ||
name: copyright update | ||
if: github.repository == 'jhipster/generator-jhipster-quarkus' | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 40 | ||
steps: | ||
# Checkout | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
fetch-depth: 0 | ||
# Update the copyright headers | ||
- name: Find and Replace | ||
run: | | ||
CURRENT_YEAR=$(date +'%Y') | ||
NEW_YEAR=$(($CURRENT_YEAR + 1)) | ||
grep -rlZE "Copyright ([0-9]+)-$CURRENT_YEAR" . | xargs -0 sed -i -E "s/Copyright ([0-9]+)-$CURRENT_YEAR/Copyright \1-$NEW_YEAR/g" | ||
# Create PR | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v7 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: 'Update copyright headers' | ||
title: 'Update Copyright Headers' | ||
body: 'This is an automated pull request to update the copyright headers' | ||
branch: 'copyright-date-update' | ||
author: 'jhipster-bot <[email protected]>' | ||
build: | ||
permissions: | ||
contents: write # for peter-evans/create-pull-request to create branch | ||
pull-requests: write # for peter-evans/create-pull-request to create a PR | ||
name: copyright update | ||
if: github.repository == 'jhipster/generator-jhipster-quarkus' | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 40 | ||
steps: | ||
# Checkout | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
fetch-depth: 0 | ||
# Update the copyright headers | ||
- name: Find and Replace | ||
run: | | ||
CURRENT_YEAR=$(date +'%Y') | ||
NEW_YEAR=$(($CURRENT_YEAR + 1)) | ||
grep -rlZE "Copyright ([0-9]+)-$CURRENT_YEAR" . | xargs -0 sed -i -E "s/Copyright ([0-9]+)-$CURRENT_YEAR/Copyright \1-$NEW_YEAR/g" | ||
# Create PR | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v7 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: 'Update copyright headers' | ||
title: 'Update Copyright Headers' | ||
body: 'This is an automated pull request to update the copyright headers' | ||
branch: 'copyright-date-update' | ||
author: 'jhipster-bot <[email protected]>' |
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 |
---|---|---|
@@ -1,30 +1,17 @@ | ||
name: Generator | ||
on: [push, pull_request] | ||
permissions: | ||
contents: read | ||
contents: read | ||
jobs: | ||
quarkus: | ||
name: npm-test | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'npm' | ||
- run: npm ci | ||
- run: npm run test | ||
check-generator: | ||
permissions: | ||
contents: none | ||
runs-on: ubuntu-latest | ||
needs: [quarkus] | ||
if: always() | ||
steps: | ||
- run: | | ||
echo '${{ toJSON(needs) }}' | ||
if [ 'skipped' == '${{ needs.quarkus.result }}' ] || [ 'success' == '${{ needs.quarkus.result }}' ] || [ 'closed' == '${{ github.event.action }}' ]; then | ||
exit 0 | ||
fi | ||
exit 1 | ||
quarkus: | ||
name: npm-test | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'npm' | ||
- run: npm ci | ||
- run: npm run test |
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 |
---|---|---|
|
@@ -3,20 +3,20 @@ name: Auto Merge | |
on: pull_request_target | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: write | ||
pull-requests: write | ||
contents: write | ||
|
||
jobs: | ||
enable-auto-merge: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository == 'jhipster/generator-jhipster-quarkus' && github.event.pull_request.user.login == 'dependabot[bot]' }} | ||
steps: | ||
- name: Dependabot metadata | ||
id: dependabot-metadata | ||
uses: dependabot/[email protected] | ||
- name: Enable auto-merge for Dependabot PRs | ||
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }} | ||
run: gh pr merge --auto --merge "$PR_URL" | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
enable-auto-merge: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository == 'jhipster/generator-jhipster-quarkus' && github.event.pull_request.user.login == 'dependabot[bot]' }} | ||
steps: | ||
- name: Dependabot metadata | ||
id: dependabot-metadata | ||
uses: dependabot/[email protected] | ||
- name: Enable auto-merge for Dependabot PRs | ||
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }} | ||
run: gh pr merge --auto --merge "$PR_URL" | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
name: Publish | ||
on: | ||
release: | ||
types: [published] | ||
release: | ||
types: [published] | ||
jobs: | ||
publish-quarkus-blueprint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
steps: | ||
- name: Checkout quarkus blueprint repository | ||
uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm ci | ||
- run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
publish-quarkus-blueprint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
steps: | ||
- name: Checkout quarkus blueprint repository | ||
uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm ci | ||
- run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
Oops, something went wrong.