Skip to content

Commit

Permalink
Add lines for debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
alee-ntap committed Nov 3, 2023
1 parent 05ca2af commit d040bd1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build_pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ jobs:
- name: fetch dependencies
run: |
mkdir _pkgs
echo "fetch depends"
find # debug
while IFS=@ read -r repo tag; do
./scripts/gh_release "${{ github.token }}" "$repo" list "$tag" | grep '\.deb$' | while read -r url; do
(cd _pkgs && wget "$url")
Expand Down Expand Up @@ -86,6 +88,8 @@ jobs:
- name: check if ${{ env.pkg }} already released
id: check
run: |
echo eheck
find # debug
if ./scripts/gh_release "${{ github.token }}" "${{ github.repository }}" exists "${{ steps.build.outputs.pkg }}"; then
echo "skip_release=true" | tee "$GITHUB_OUTPUT"
else
Expand All @@ -95,6 +99,8 @@ jobs:
id: release
if: ${{ steps.check.outputs.skip_release != 'true' }}
run: |
echo release
find # debug
release="$(./scripts/gh_release "${{ github.token }}" "${{ github.repository }}" create --draft "${{ steps.build.outputs.pkg }}" "${{ github.sha }}" "${{ steps.build.outputs.pkg }}")"
for f in output/*; do
./scripts/gh_release "${{ github.token }}" "${{ github.repository }}" upload "$release" "$f"
Expand Down Expand Up @@ -135,6 +141,8 @@ jobs:
ln -s "$pkg.dsc" .source
- name: fetch dependencies
run: |
echo "fetch depends"
find # debug
mkdir _pkgs
while IFS=@ read -r repo tag; do
./scripts/gh_release "${{ github.token }}" "$repo" list "$tag" | grep '\.deb$' | while read -r url; do
Expand Down Expand Up @@ -164,6 +172,8 @@ jobs:
- name: upload packages
if: ${{ steps.build.outputs.pkg != '' }}
run: |
echo upload
find # debug
release="${{ needs.source.outputs.release }}"
for f in output/*; do
./scripts/gh_release "${{ github.token }}" "${{ github.repository }}" upload "$release" "$f"
Expand Down

0 comments on commit d040bd1

Please sign in to comment.