diff --git a/.gitea/workflows/develop -> build.yml b/.gitea/workflows/develop -> build.yml index d2bdb95..a97f7a8 100644 --- a/.gitea/workflows/develop -> build.yml +++ b/.gitea/workflows/develop -> build.yml @@ -25,13 +25,10 @@ jobs: curl https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-386 --output tea chmod +x ./tea ./tea login add -n=this --url=${{ github.server_url}} -t=${{ secrets.BOT_TOKEN }} - ./tea pr ls -f=base,head,index -o csv - echo here - echo $(./tea pr ls -f=base,head,index -o csv | grep "\"master\",\"${{ github.ref_name }}\"") - echo i did it - echo ::set-env name=PR::$(./tea pr ls -f=base,head,index -o csv | grep "\"master\",\"${{ github.ref_name }}\"" | tr -d ' ' | tr "," "\n" | head -n 4 | tail -1) + PR=$(./tea pr ls -f=base,head,index -o csv | grep "\"master\",\"${{ github.ref_name }}\"" | tr -d ' ' | tr "," "\n" | head -n 4 | tail -1) + export PR = "${PR//[\"\'\`]/}"" + echo ::set-env name=$PR rm ./tea - echo PR: $PR - run: git fetch - name: get build branch name run: |