forked from openwallet-foundation/acapy-plugins
-
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.
Signed-off-by: jamshale <[email protected]>
- Loading branch information
Showing
2 changed files
with
39 additions
and
9 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 |
---|---|---|
|
@@ -18,7 +18,6 @@ jobs: | |
permissions: | ||
contents: write | ||
pull-requests: write | ||
actions: write | ||
runs-on: ubuntu-latest | ||
outputs: | ||
current_available_version: ${{ steps.current_available_version.outputs.version }} | ||
|
@@ -76,15 +75,16 @@ jobs: | |
# Re-Release Check | ||
#---------------------------------------------- | ||
- name: Re-Release Check | ||
if: ${{ github.event.inputs.re_release == 'true' }} | ||
if: github.event.inputs.re_release == 'true' | ||
run: | | ||
echo "Re-Release manually requested. Skipping upgrade available check." | ||
#---------------------------------------------- | ||
# Check if aries-cloudagent upgrade available | ||
# If the global version is greater than or equal to the remote version, exit | ||
#---------------------------------------------- | ||
- name: Check if aries-cloudagent upgrade available | ||
if: ${{ github.event.inputs.re_release != 'true' }} | ||
id: upgrade_available | ||
if: github.event.inputs.re_release != 'true' | ||
run: | | ||
current_available_version="${{steps.current_available_version.outputs.current_available_version}}" | ||
echo "Remote version = $current_available_version" | ||
|
@@ -100,25 +100,29 @@ jobs: | |
echo "Version of aries-cloudagent is up to date" | ||
exit 0 | ||
fi | ||
echo available=true >> $GITHUB_OUTPUT | ||
echo "Detected aries-cloudagent upgrade available..." | ||
#---------------------------------------------- | ||
# Update global aries-cloudagent version in lock file | ||
#---------------------------------------------- | ||
- name: Update global acapy version | ||
if: ${{ steps.upgrade_available.outputs.available == 'true' && github.event.inputs.re_release != 'true'}} | ||
run: | | ||
python repo_manager.py 3 | ||
echo "Update global acapy version" | ||
#---------------------------------------------- | ||
# Update all plugins with aries-cloudagent and global and local dependencies | ||
#---------------------------------------------- | ||
- name: Run global updates | ||
if: ${{ steps.upgrade_available.outputs.available == 'true' && github.event.inputs.re_release != 'true'}} | ||
run: | | ||
python repo_manager.py 2 | ||
echo "Upgrade all plugins" | ||
#---------------------------------------------- | ||
# Get all potential upgrades | ||
#---------------------------------------------- | ||
- name: Get all potential upgrades | ||
if: ${{ steps.upgrade_available.outputs.available == 'true' && github.event.inputs.re_release != 'true'}} | ||
id: all_potential_upgrades | ||
run: | | ||
declare -a potential_upgrades=() | ||
|
@@ -148,6 +152,7 @@ jobs: | |
#---------------------------------------------- | ||
- name: Lint plugins | ||
id: lint_plugins | ||
if: ${{ steps.upgrade_available.outputs.available == 'true' && github.event.inputs.re_release != 'true'}} | ||
continue-on-error: true | ||
run: | | ||
declare -a failed_plugins=() | ||
|
@@ -172,6 +177,7 @@ jobs: | |
#---------------------------------------------- | ||
- name: Unit Test Plugins | ||
id: unit_test_plugins | ||
if: ${{ steps.upgrade_available.outputs.available == 'true' && github.event.inputs.re_release != 'true'}} | ||
continue-on-error: true | ||
run: | | ||
declare -a failed_plugins=() | ||
|
@@ -195,11 +201,13 @@ jobs: | |
# Install docker compose | ||
# ---------------------------------------------- | ||
- name: Initialize Docker Compose | ||
if: ${{ steps.upgrade_available.outputs.available == 'true' && github.event.inputs.re_release != 'true'}} | ||
uses: isbang/[email protected] | ||
# ---------------------------------------------- | ||
# Collect plugins that fail integration tests | ||
# ---------------------------------------------- | ||
- name: Integration Test Plugins | ||
if: ${{ steps.upgrade_available.outputs.available == 'true' && github.event.inputs.re_release != 'true'}} | ||
id: integration_test_plugins | ||
continue-on-error: true | ||
run: | | ||
|
@@ -235,6 +243,7 @@ jobs: | |
# ---------------------------------------------- | ||
- name: Prepare Pull Request | ||
id: prepare_pr | ||
if: ${{ steps.upgrade_available.outputs.available == 'true' && github.event.inputs.re_release != 'true'}} | ||
run: | | ||
echo "Merging failed plugins" | ||
failed_plugins=() | ||
|
@@ -356,6 +365,7 @@ jobs: | |
# Create Release PR | ||
#---------------------------------------------- | ||
- name: Create PR | ||
if: ${{ steps.upgrade_available.outputs.available == 'true' && github.event.inputs.re_release != 'true'}} | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
author: Release 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