-
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
6 changed files
with
96 additions
and
80 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd"> | ||
|
||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd"> | ||
<servers> | ||
<server> | ||
<id>gh.l7l.us.kgmits</id> | ||
<username>${env.GITHUB_USER}</username> | ||
<password>${env.GITHUB_API_KEY}</password> | ||
</server> | ||
</servers> | ||
|
||
</settings> |
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
# SPDX-FileCopyrightText: © Sebastian Thomschke and contributors. | ||
# SPDX-FileContributor: Sebastian Thomschke | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# SPDX-ArtifactOfProjectHomePage: https://github.com/sebthom/open-with-eclipse-plugin | ||
# | ||
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions | ||
name: Build | ||
|
||
|
@@ -46,11 +51,20 @@ env: | |
KEYSTORE_PATH: /tmp/sebthom.github.io.p12 | ||
KEYSTORE_PW: whatever | ||
|
||
|
||
jobs: | ||
|
||
build: | ||
########################################################### | ||
maven-build: | ||
########################################################### | ||
runs-on: ubuntu-latest | ||
concurrency: ci-${{ github.ref }} | ||
|
||
|
||
# https://docs.github.com/en/actions/using-jobs/using-concurrency | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: false | ||
|
||
|
||
steps: | ||
- name: Show environment variables | ||
|
@@ -76,6 +90,12 @@ jobs: | |
java-version: ${{ env.JAVA_VERSION }} | ||
|
||
|
||
- name: "Install: Maven" | ||
uses: stCarolas/[email protected] # https://github.com/stCarolas/setup-maven | ||
with: | ||
maven-version: 3.9.6 | ||
|
||
|
||
- name: "Cache: Restore" | ||
id: cache-restore | ||
if: ${{ !env.ACT }} # https://github.com/nektos/act#skipping-steps | ||
|
@@ -88,12 +108,6 @@ jobs: | |
key: ${{ runner.os }}-${{ hashFiles('build.target') }}-${{ hashFiles('**/pom.xml') }} | ||
|
||
|
||
- name: "Install: Maven" | ||
uses: stCarolas/[email protected] # https://github.com/stCarolas/setup-maven | ||
with: | ||
maven-version: 3.9.5 | ||
|
||
|
||
- name: Get Signing Certificate | ||
if: ${{ github.ref_name == 'main' && !env.ACT }} | ||
env: | ||
|
@@ -111,7 +125,6 @@ jobs: | |
- name: Build with Maven | ||
id: maven-build | ||
env: | ||
GITHUB_USER: ${{ github.actor }} | ||
GITHUB_API_KEY: ${{ github.token }} | ||
|
@@ -165,7 +178,7 @@ jobs: | |
# https://cli.github.com/manual/gh_release_create | ||
run: | | ||
GH_DEBUG=1 gh release create "$RELEASE_NAME" \ | ||
--prerelease \ | ||
--title "$RELEASE_NAME" \ | ||
--latest \ | ||
--notes "${{ github.event.head_commit.message }}" \ | ||
--target "${{ github.sha }}" \ | ||
|
@@ -227,6 +240,7 @@ jobs: | |
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
gh extension install actions/gh-actions-cache | ||
# "|| true" is to avoid "Error: Resource not accessible by integration" from failing the job | ||
gh actions-cache delete ${{ steps.cache-restore.outputs.cache-primary-key }} --confirm || true | ||
- name: "Cache: Update" | ||
|
@@ -259,8 +273,48 @@ jobs: | |
echo "start_ssh_session=true" | tee -a "$GITHUB_OUTPUT" | ||
fi | ||
- name: "SSH session for debugging: start" | ||
uses: mxschmitt/action-tmate@v3 # https://github.com/mxschmitt/action-tmate | ||
if: always() && steps.DEBUG_SSH_SESSSION_CHECK.outputs.start_ssh_session | ||
with: | ||
limit-access-to-actor: ${{ inputs.debug-with-ssh-only-for-actor }} | ||
|
||
|
||
########################################################### | ||
dependabot-pr-auto-merge: | ||
########################################################### | ||
needs: maven-build | ||
if: ${{ github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' }} | ||
runs-on: ubuntu-latest | ||
|
||
concurrency: dependabot-pr-auto-merge | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Dependabot metadata | ||
id: metadata | ||
uses: dependabot/fetch-metadata@v1 # https://github.com/dependabot/fetch-metadata/ | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
|
||
- name: Enable auto-merge for Dependabot PRs | ||
if: | | ||
${{ | ||
( | ||
steps.dependabot-metadata.outputs.package-ecosystem == 'github-actions' && | ||
steps.metadata.outputs.update-type == 'version-update:semver-major' | ||
) || ( | ||
steps.dependabot-metadata.outputs.package-ecosystem == 'maven' && | ||
steps.metadata.outputs.update-type == 'version-update:semver-minor' | ||
) | ||
}} | ||
run: | | ||
gh pr merge --auto --rebase "$PR_URL" | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
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