Skip to content

Commit

Permalink
chore: Drop manual git branch extraction commands from action and u…
Browse files Browse the repository at this point in the history
…se Hydrapp's `go-git` instead
  • Loading branch information
pojntfx committed May 12, 2024
1 parent 08dfade commit 4d26e8b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/hydrapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,18 +101,10 @@ jobs:
HYDRAPP_PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }}
HYDRAPP_PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }}
run: |
export BRANCH_ID=""
export BRANCH_NAME=""
if [ "$(git tag --points-at HEAD)" = "" ]; then
export BRANCH_ID="$(git symbolic-ref --short HEAD)"
export BRANCH_NAME="$(echo ${BRANCH_ID^})"
fi
hydrapp build --config='./${{ matrix.target.pkg }}/hydrapp.yaml' --exclude='${{ matrix.target.exclude }}' \
--pull=true --tag='${{ matrix.target.tag }}' \
--dst="${PWD}/out/${{ matrix.target.pkg }}" --src="${PWD}" \
--concurrency="$(nproc)" \
--branch-id="${BRANCH_ID}" --branch-name="${BRANCH_NAME}"
--concurrency="$(nproc)"
- name: Upload output
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 4d26e8b

Please sign in to comment.