Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
digiserg committed Sep 26, 2024
1 parent 3f8b30f commit 942529c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/debug-brew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ jobs:
- name: Make changes to Homebrew
run: |
set -x
VERSION=$(echo $GITHUB_REF_NAME | sed 's/^v//g')
#echo "VERSION=$VERSION" >> $GITHUB_ENV
if [[ "$VERSION" == "" ]]; then
VERSION=$(echo $GITHUB_REF_NAME | sed 's/^v//g')
fi
case $VERSION in
*internal*)
NAME=axonopsworkbench-internal
Expand Down
21 changes: 16 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,10 @@ jobs:

- name: Make changes to Homebrew
run: |
VERSION=$(echo $GITHUB_REF_NAME | sed 's/^v//g')
#echo "VERSION=$VERSION" >> $GITHUB_ENV
set -x
if [[ "$VERSION" == "" ]]; then
VERSION=$(echo $GITHUB_REF_NAME | sed 's/^v//g')
fi
case $VERSION in
*internal*)
NAME=axonopsworkbench-internal
Expand Down Expand Up @@ -341,7 +343,9 @@ jobs:

- name: Make changes to chocolatey
run: |
VERSION=$(echo $GITHUB_REF_NAME | sed 's/^v//g')
if [[ "$VERSION" == "" ]]; then
VERSION=$(echo $GITHUB_REF_NAME | sed 's/^v//g')
fi
#echo "VERSION=$VERSION" >> $GITHUB_ENV
cd chocolatey
git config user.name "GitHub Actions"
Expand Down Expand Up @@ -391,6 +395,9 @@ jobs:

- name: "Set runtime variables"
run: |
if [[ "$VERSION" == "" ]]; then
VERSION=$(echo $GITHUB_REF_NAME | sed 's/^v//g')
fi
PUBLISH="yes"
DEBIAN_ARCHS="amd64"
REDHAT_ARCHS="x86_64"
Expand All @@ -414,7 +421,9 @@ jobs:
- name: Push Debian package
if: env.PUBLISH == 'yes'
run: |
VERSION=$(echo $GITHUB_REF_NAME | sed 's/^v//g')
if [[ "$VERSION" == "" ]]; then
VERSION=$(echo $GITHUB_REF_NAME | sed 's/^v//g')
fi
for arch in ${{ env.DEBIAN_ARCHS }}; do
curl -sLO "https://github.com/axonops/axonops-workbench-cassandra/releases/download/$VERSION/AxonOps.Workbench-$VERSION-linux-${arch}.deb"
gcloud config set project axonops-public
Expand All @@ -424,7 +433,9 @@ jobs:
- name: Push RedHat package
if: env.PUBLISH == 'yes'
run: |
VERSION=$(echo $GITHUB_REF_NAME | sed 's/^v//g')
if [[ "$VERSION" == "" ]]; then
VERSION=$(echo $GITHUB_REF_NAME | sed 's/^v//g')
fi
for arch in ${{ env.REDHAT_ARCHS }}; do
curl -sLO "https://github.com/axonops/axonops-workbench-cassandra/releases/download/$VERSION/AxonOps.Workbench-$VERSION-linux-${arch}.rpm"
gcloud config set project axonops-public
Expand Down

0 comments on commit 942529c

Please sign in to comment.