Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8d8f7b4

Browse filesBrowse files
authored
Made the update versions to do a PR (geosolutions-it#10017)
* Made the update versions to do a PR * Update update_gs_versions.yml * Made the update versions to do a PR
1 parent f5079b2 commit 8d8f7b4
Copy full SHA for 8d8f7b4

1 file changed

+9-5Lines changed: 9 additions & 5 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/update_gs_versions.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/update_gs_versions.yml
+9-5Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Update GS dependency versions
1+
name: Update dependencies versions
22
on:
33
workflow_dispatch:
44
inputs:
@@ -13,15 +13,15 @@ on:
1313
required: true
1414
jobs:
1515
update-versions:
16-
name: Uptate GS dependency versions (Mapfish, GeoStore, Http Proxy)
16+
name: Uptate dependency versions (Mapfish, GeoStore, Http Proxy)
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout
2020
uses: actions/checkout@v3
2121
with:
2222
ref: ${{ github.event.inputs.main-branch }}
2323
token: ${{ secrets.GITHUB_TOKEN }}
24-
- name: Updte versions
24+
- name: Update versions
2525
id: create-versions
2626
env:
2727
MAPFISH_GROUP: org.mapfish.print
@@ -30,7 +30,6 @@ jobs:
3030
GEOSTORE_VERSION: ${{ github.event.inputs.geostore-version }}
3131
HTTP_PROXY_GROUP: proxy
3232
HTTP_PROXY_VERSION: ${{ github.event.inputs.http-proxy-version }}
33-
RELEASE_BRANCH: ${{ github.event.inputs.release-branch }}
3433

3534
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3635
MAIN_BRANCH: ${{ github.event.inputs.main-branch }}
@@ -51,10 +50,15 @@ jobs:
5150
mvn versions:use-dep-version -f $POM_FILE -Dincludes=$GEOSTORE_GROUP -DdepVersion=$GEOSTORE_VERSION -DforceVersion=true -DgenerateBackupPoms=false -DautoVersionSubmodules=true -Pprinting
5251
mvn versions:use-dep-version -f $POM_FILE -Dincludes=$HTTP_PROXY_GROUP -DdepVersion=$HTTP_PROXY_VERSION -DforceVersion=true -DgenerateBackupPoms=false -DautoVersionSubmodules=true -Pprinting
5352
done
53+
pr_branch_name="up_versions-${RUN_ID}"
54+
echo "Creating a PR on branch: ${pr_branch_name} for ${{ github.ref_name }}"
55+
git checkout -b "${pr_branch_name}"
5456
echo $POM_FILES | xargs git add
5557
if ! git diff-index --quiet HEAD; then
5658
git commit -m "Set versions of main dependencies (geostore, mapfish, http-proxy)"
5759
else
5860
echo "::notice::No version changes in dependencies to commit. Please make sure to make this version fixed later"
5961
fi
60-
git push origin ${{ github.ref_name }}
62+
git push origin "${pr_branch_name}"
63+
pr_url=$(gh pr create -B "${{ github.ref_name }}" -H "${pr_branch_name}" --title "[github-action] ${{ github.ref_name }} - Dependencies versions update" --body "This automatic pull request bumps version of ${{ github.ref_name }} branch for java packages. It updates the versions of the main dependencies (geostore, mapfish, http-proxy) to the versions: mapfish: $MAPFISH_VERSION, geostore: $GEOSTORE_VERSION, http-proxy: $HTTP_PROXY_VERSION")
64+
sleep 10

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.