Skip to content

Commit

Permalink
update: modify version retrieval step in release workflow to use a sc…
Browse files Browse the repository at this point in the history
…ript
  • Loading branch information
hardingadonis committed Jan 8, 2025
1 parent 8849e25 commit eb4b283
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
13 changes: 0 additions & 13 deletions .github/actions/get-version/action.yml

This file was deleted.

18 changes: 14 additions & 4 deletions .github/workflows/release-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Get Version
- name: Get version from script
id: get_version
uses: ./.github/actions/get-version
run: |
wget https://raw.githubusercontent.com/lzaycoe/brainbox-deployment/refs/heads/main/scripts/get-version.sh
sudo apt-get install jq
chmod +x ./get-version.sh
echo "version=$(./get-version.sh ./package.json)" >> $GITHUB_OUTPUT
shell: bash

- name: Release
uses: softprops/action-gh-release@v2
Expand All @@ -48,9 +53,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Get Version
- name: Get version from script
id: get_version
uses: ./.github/actions/get-version
run: |
wget https://raw.githubusercontent.com/lzaycoe/brainbox-deployment/refs/heads/main/scripts/get-version.sh
sudo apt-get install jq
chmod +x ./get-version.sh
echo "version=$(./get-version.sh ./package.json)" >> $GITHUB_OUTPUT
shell: bash

- name: Login ghcr.io
uses: docker/login-action@v3
Expand Down

0 comments on commit eb4b283

Please sign in to comment.