Skip to content

Commit

Permalink
Merge pull request #56 from jamshale/release
Browse files Browse the repository at this point in the history
WIP
  • Loading branch information
jamshale authored Apr 16, 2024
2 parents d63fafb + 182ec13 commit 7a07ce4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/create-release-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Create Release PR

on:
workflow_dispatch:
inputs:
re_release:
description: 'Re-Release same version with fixes'
required: false
type: boolean
schedule:
- cron: "0 0 * * *"

Expand Down Expand Up @@ -51,6 +56,8 @@ jobs:
echo current_global_version=$version >> $GITHUB_OUTPUT
echo "Global version = $version"
- name: Check if aries-cloudagent upgrade available
env:
RE_RELEASE: ${{ inputs.re_release }}
run: |
current_available_version="${{steps.current_available_version.outputs.current_available_version}}"
echo "Remote version = $current_available_version"
Expand All @@ -59,13 +66,14 @@ jobs:
sem_version () {
echo "$@" | awk -F. '{ printf("%d%03d%03d%03d\n", $1,$2,$3,$4); }';
}
if [ $(sem_version $current_global_version) -ge $(sem_version $current_available_version) ]; then
echo "Version of aries-cloudagent is up to date"
available=false
exit 1
fi
echo "Detected aries-cloudagent upgrade available..."
available=true
if [ "$RE_RELEASE" = "true" ]; then
echo "Re-Release requested"
else
if [ $(sem_version $current_global_version) -ge $(sem_version $current_available_version) ]; then
echo "Version of aries-cloudagent is up to date"
exit 1
fi
echo "Detected aries-cloudagent upgrade available..."
- name: Update global acapy version
run: |
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Create Release

on: workflow_dispatch
on:
workflow_dispatch:
push:
branches:
- "main"
pull_request:
branches:
- "release-*"

permissions:
contents: write
Expand Down Expand Up @@ -34,6 +41,9 @@ jobs:
git fetch --all
tag_output=(git tag -n0 "*$version*")
echo "Tag output: $tag_output"
tags=0
for item in $tag_output
do
Expand Down

0 comments on commit 7a07ce4

Please sign in to comment.