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.
Merge pull request #172 from jamshale/release-improvements
Release improvements
- Loading branch information
Showing
1 changed file
with
53 additions
and
35 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 |
---|---|---|
|
@@ -183,40 +183,41 @@ jobs: | |
cd .. | ||
done | ||
echo unit_test_plugins=${failed_plugins[*]} >> $GITHUB_OUTPUT | ||
# # ---------------------------------------------- | ||
# # Install docker compose | ||
# # ---------------------------------------------- | ||
# - name: Initialize Docker Compose | ||
# uses: isbang/[email protected] | ||
# # ---------------------------------------------- | ||
# # Collect plugins that fail integration tests | ||
# # ---------------------------------------------- | ||
# - name: Integration Test Plugins | ||
# id: integration_test_plugins | ||
# continue-on-error: true | ||
# run: | | ||
# trap 'echo "integration_test_exit_code=$?" >> "$GITHUB_OUTPUT"' EXIT | ||
# declare -a failed_plugins=() | ||
# for dir in ./*/; do | ||
# current_folder=$(basename "$dir") | ||
# if [[ $current_folder == "plugin_globals" ]]; then | ||
# continue | ||
# fi | ||
# cd $current_folder/integration | ||
# docker compose down --remove-orphans | ||
# docker compose build | ||
# if docker compose run tests; then | ||
# echo "plugin $current_folder passed integration test check" | ||
# else | ||
# echo "plugin $current_folder failed integration test check" | ||
# failed_plugins+=("$current_folder") | ||
# fi | ||
# cd ../.. | ||
# done | ||
# echo integration_test_plugins=${failed_plugins[*]} >> $GITHUB_OUTPUT | ||
# ---------------------------------------------- | ||
# Install docker compose | ||
# Prepare Pull Request | ||
# ---------------------------------------------- | ||
- name: Initialize Docker Compose | ||
uses: isbang/[email protected] | ||
# ---------------------------------------------- | ||
# Collect plugins that fail integration tests | ||
# ---------------------------------------------- | ||
- name: Integration Test Plugins | ||
id: integration_test_plugins | ||
continue-on-error: true | ||
run: | | ||
trap 'echo "integration_test_exit_code=$?" >> "$GITHUB_OUTPUT"' EXIT | ||
declare -a failed_plugins=() | ||
for dir in ./*/; do | ||
current_folder=$(basename "$dir") | ||
if [[ $current_folder == "plugin_globals" ]]; then | ||
continue | ||
fi | ||
cd $current_folder/integration | ||
docker compose down --remove-orphans | ||
docker compose build | ||
if docker compose run tests; then | ||
echo "plugin $current_folder passed integration test check" | ||
else | ||
echo "plugin $current_folder failed integration test check" | ||
failed_plugins+=("$current_folder") | ||
fi | ||
cd ../.. | ||
done | ||
echo integration_test_plugins=${failed_plugins[*]} >> $GITHUB_OUTPUT | ||
- name: Create Pull Request | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Prepare Pull Request | ||
run: | | ||
echo "Merging failed plugins" | ||
failed_plugins=() | ||
|
@@ -267,7 +268,7 @@ jobs: | |
git config --global user.name 'Release Bot' | ||
git config --global user.email '[email protected]' | ||
git remote set-url --push origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/hyperledger/aries-acapy-plugins | ||
# git remote set-url --push origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/hyperledger/aries-acapy-plugins | ||
git fetch --all | ||
git checkout -b "release-v$release_version" | ||
|
@@ -315,7 +316,7 @@ jobs: | |
fi | ||
git commit -s -m "Release v$release_version Upgrades" | ||
git push --set-upstream origin "release-v$release_version" | ||
# git push --set-upstream origin "release-v$release_version" | ||
# Create the PR | ||
|
@@ -325,4 +326,21 @@ jobs: | |
done | ||
title="Release for aries-cloudagent v$release_version" | ||
gh pr create --title "$title" --body "$body $details" --base main --head "release-v$release_version" | ||
# gh pr create --title "$title" --body "$body $details" --base main --head "release-v$release_version" | ||
#---------------------------------------------- | ||
# Create Release PR | ||
#---------------------------------------------- | ||
- name: Create PR | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
author: Release Bot <[email protected]> | ||
committer: Release Bot <[email protected]> | ||
token: ${{ secrets.BOT_PR_PAT }} | ||
commit-message: "Release v${{ steps.current_available_version.outputs.current_available_version }}" | ||
title: "Release v${{ steps.current_available_version.outputs.current_available_version }}" | ||
body: "Release v${{ steps.current_available_version.outputs.current_available_version }}" | ||
branch: "release-v${{ steps.current_available_version.outputs.current_available_version }}" | ||
base: "jamshale/aries-acapy-plugins:main" | ||
draft: false | ||
signoff: true | ||
delete-branch: true |