-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update GitHub Action workflows to use aepsdk-commons #171
Changes from 11 commits
d6ced6e
9386c93
260ff4c
c50df5d
4b873ea
036833c
a35eb5a
1f355bf
ded1168
2b7b5c7
e21e498
f80795b
fd32eb0
07bd896
b44f528
8739d7e
6bb8b95
768a412
4cbe66c
678b39b
3f25594
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,56 @@ | ||
# | ||
# Copyright 2024 Adobe. All rights reserved. | ||
# This file is licensed to you under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. You may obtain a copy | ||
# of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under | ||
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS | ||
# OF ANY KIND, either express or implied. See the License for the specific language | ||
# governing permissions and limitations under the License. | ||
# | ||
name: Update Versions | ||
|
||
name: Update Version | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'New version to use for the Edge extension. Example: 3.0.0' | ||
version: | ||
description: 'New version to use for the extension (ex: 1.2.3).' | ||
type: string | ||
required: true | ||
default: '' | ||
|
||
branch: | ||
description: 'The target branch where the version update will be applied and the pull request will be merged into.' | ||
type: string | ||
required: true | ||
default: '' | ||
|
||
core-dependency: | ||
description: '[Optional] Update Core dependency in pom.xml. Example: 3.0.0' | ||
description: 'If a version is provided, update AEPCore dependency in gradle.properties (ex: 1.2.3).' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Specify that this is a dependency in the pom.xml file, so users know this is a published dependency. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you! Added the additional context to the description as suggested |
||
type: string | ||
required: false | ||
default: '' | ||
|
||
identity-dependency: | ||
description: '[Optional] Update Edge Identity dependency in pom.xml. Example: 3.0.0' | ||
edge-identity-dependency: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Specify that this is a dependency in the pom.xm file, so users know this is a publish dependency. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated |
||
description: 'If a version is provided, update AEPEdgeIdentity dependency in gradle.properties (ex: 1.2.3).' | ||
type: string | ||
required: false | ||
default: '' | ||
|
||
jobs: | ||
update-version: | ||
runs-on: ubuntu-latest | ||
edge-consent-dependency: | ||
description: 'If a version is provided, update AEPEdgeConsent dependency in gradle.properties (ex: 1.2.3).' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Specify this is a testing only dependency. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated |
||
type: string | ||
required: false | ||
default: '' | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Update Edge | ||
run: (./scripts/version.sh -u -v ${{ github.event.inputs.version }} -d "Core ${{ github.event.inputs.core-dependency }}, EdgeIdentity ${{ github.event.inputs.identity-dependency }}") | ||
testutils-dependency: | ||
description: 'If a version is provided, update AEPTestUtils dependency in gradle.properties (ex: 1.2.3).' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Specify this is a testing only dependency. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated |
||
type: string | ||
required: false | ||
default: '' | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ github.token }} | ||
commit-message: Updating version to ${{ github.event.inputs.version }}. | ||
branch: version-${{ github.event.inputs.version }}-update | ||
delete-branch: true | ||
title: Updating version to ${{ github.event.inputs.version }} | ||
body: Updating version to ${{ github.event.inputs.version }} | ||
jobs: | ||
update-versions: | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
# @<workflow-version-tag> refers to the tag (version) of the reusable workflow in the aepsdk-commons repository. | ||
# When updating the tag here, the `workflow_tag` input to the workflow must match this value. | ||
uses: adobe/aepsdk-commons/.github/workflows/versions.yml@gha-android-1.0.0 | ||
with: | ||
version: ${{ github.event.inputs.version }} | ||
branch: ${{ github.event.inputs.branch }} | ||
dependencies: AEPCore ${{ github.event.inputs.core-dependency }}, AEPEdgeIdentity ${{ github.event.inputs.edge-identity-dependency }}, AEPEdgeConsent ${{ github.event.inputs.edge-consent-dependency }}, AEPTestUtils ${{ github.event.inputs.testutils-dependency }} | ||
cacheung marked this conversation as resolved.
Show resolved
Hide resolved
|
||
paths: code/edge/src/main/java/com/adobe/marketing/mobile/EdgeConstants.java, code/gradle.properties | ||
update: true | ||
workflow_tag: gha-android-1.0.0 # This tag must match the tag used for the reusable workflow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep the copyright header for this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Added back