diff --git a/.gitea/workflows/build-develop-branch.yml b/.gitea/workflows/build-develop-branch.yml index ba5cfd2..6a86b57 100644 --- a/.gitea/workflows/build-develop-branch.yml +++ b/.gitea/workflows/build-develop-branch.yml @@ -20,7 +20,7 @@ jobs: run: | 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.TEA_TOKEN }} + ./tea login add -n=this --url=${{ github.server_url}} -t=${{ github.token }} 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 - name: get build branch name diff --git a/.gitea/workflows/convert-to-yml.yml b/.gitea/workflows/convert-to-yml.yml index ef9c423..1a2098b 100644 --- a/.gitea/workflows/convert-to-yml.yml +++ b/.gitea/workflows/convert-to-yml.yml @@ -73,7 +73,7 @@ jobs: run: | 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.TEA_TOKEN }} + ./tea login add -n=this --url=${{ github.server_url}} -t=${{ github.token }} if [[ $(./tea pr ls -f=base,head | grep "| master | ${{ env.DEVELOPMENT_BRANCH }} |" | head -c1 | wc -c) -eq 0 ]]; then ./tea pr c --base=master --head=${{ env.DEVELOPMENT_BRANCH }} --description="development pull request" -t="WIP: ${{ github.event.head_commit.message }}" fi diff --git a/.gitea/workflows/pr-closed.yml b/.gitea/workflows/pr-closed.yml index 41cd10e..488c2d7 100644 --- a/.gitea/workflows/pr-closed.yml +++ b/.gitea/workflows/pr-closed.yml @@ -25,7 +25,7 @@ jobs: continue-on-error: true - uses: mainmatter/continue-on-error-comment@v1 with: - repo-token: ${{ secrets.TEA_TOKEN }} + repo-token: ${{ github.token }} outcome: ${{ steps.delete_develop_branch.outcome }} test-id: Error code ${{ matrix.code }} - name: get build branch name @@ -39,7 +39,7 @@ jobs: continue-on-error: true - uses: mainmatter/continue-on-error-comment@v1 with: - repo-token: ${{ secrets.TEA_TOKEN }} + repo-token: ${{ github.token }} outcome: ${{ steps.delete_build_branch.outcome }} test-id: Error code ${{ matrix.code }} - name: get build format branch name @@ -53,7 +53,7 @@ jobs: continue-on-error: true - uses: mainmatter/continue-on-error-comment@v1 with: - repo-token: ${{ secrets.TEA_TOKEN }} + repo-token: ${{ github.token }} outcome: ${{ steps.delete_format_branch.outcome }} test-id: Error code ${{ matrix.code }} \ No newline at end of file