From a3788fca34d5fb2c79906b590e4b5f0b5e3a070d Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 24 Oct 2023 18:33:53 +0700 Subject: [PATCH] workflows: adjust debug --- .github/workflows/debug.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index 94e6ac6..f431d53 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -28,7 +28,6 @@ jobs: - name: update module.prop run: | - # sed -i "s/version=.*/version=${{ steps.get_tags.outputs.tag }}_${{ steps.get_tags.outputs.tag }}_debug/g" module.prop sed -i "s/${{ steps.get_tags.outputs.tag }}/&_${{ steps.get_tags.outputs.version }}_debug/g" module.prop sed -i "s/versionCode=.*/versionCode=${{ steps.get_tags.outputs.versionCode }}/g" module.prop @@ -53,7 +52,7 @@ jobs: runs-on: ubuntu-latest needs: [build] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -69,11 +68,6 @@ jobs: sed -i "s/${{ steps.get_tags.outputs.tag }}/&_${{ steps.get_tags.outputs.version }}_debug/g" module.prop sed -i "s/versionCode=.*/versionCode=${{ steps.get_tags.outputs.versionCode }}/g" module.prop sh build.sh - - - name: Release - run: | - mkdir bfr - find -name "*.zip" -exec cp {} bfr \; - name: Upload to telegram env: @@ -86,8 +80,8 @@ jobs: RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} TITLE: box for root ${{ steps.get_tags.outputs.tag }}_${{ steps.get_tags.outputs.version }}_debug run: | - export VERSION=$(git describe --tags) + export VERSION=${{ steps.get_tags.outputs.tag }}_${{ steps.get_tags.outputs.version }} export CG=$(git log --oneline -n 5) - FILE=$(find ./bfr/* -type f) + FILE=$(find ./*.zip -type f) pip3 install python-telegram-bot python3 docs/tubot.py $FILE \ No newline at end of file