................
This commit is contained in:
parent
fa6b611558
commit
cd6e082dcd
|
@ -20,7 +20,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
curl https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-386 --output tea
|
curl https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-386 --output tea
|
||||||
chmod +x ./tea
|
chmod +x ./tea
|
||||||
..tea pr ls
|
./tea pr ls
|
||||||
./tea pr ls -f=base,head,index | grep "| master | ${{ github.ref_name }} |"
|
./tea pr ls -f=base,head,index | grep "| master | ${{ github.ref_name }} |"
|
||||||
echo ::set-env name=PR::${./tea pr ls -f=base,head,index | grep "| master | ${{ github.ref_name }} |" | tr -d ' ' | tr "|" "\n" | head -n 4 | tail -1}
|
echo ::set-env name=PR::${./tea pr ls -f=base,head,index | grep "| master | ${{ github.ref_name }} |" | tr -d ' ' | tr "|" "\n" | head -n 4 | tail -1}
|
||||||
rm ./tea
|
rm ./tea
|
||||||
|
|
|
@ -64,3 +64,4 @@ jobs:
|
||||||
if [[ $(./tea pr ls -f=base,head | grep "| master | ${{ env.PRODUCTION_BRANCH }} |" | head -c1 | wc -c) -eq 0 ]]; then
|
if [[ $(./tea pr ls -f=base,head | grep "| master | ${{ env.PRODUCTION_BRANCH }} |" | head -c1 | wc -c) -eq 0 ]]; then
|
||||||
./tea pr c --base=master --head=${{ env.PRODUCTION_BRANCH }} --description="development pull request" -t="WIP: ${{ github.event.head_commit.message }}"
|
./tea pr c --base=master --head=${{ env.PRODUCTION_BRANCH }} --description="development pull request" -t="WIP: ${{ github.event.head_commit.message }}"
|
||||||
fi
|
fi
|
||||||
|
rm ./tea
|
||||||
|
|
Loading…
Reference in New Issue