ci: 更新Gitea工作流中使用GitHub官方actions

将自定义的actions地址替换为GitHub官方actions,提高工作流的稳定性和可维护性
This commit is contained in:
shanshanzhong 2025-08-05 08:05:21 -07:00
parent 85343f3f82
commit bf13c56261

View File

@ -30,11 +30,11 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: https://${{ env.GIT_USERNAME }}:${{ env.GIT_PASSWORD }}@${{ vars.DOMAIN_OF_GITEA}}/actions/checkout@main uses: actions/checkout@v4
# 将.env环境变量配置文件拷贝致gitea runner容器 # 将.env环境变量配置文件拷贝致gitea runner容器
- name: copy env file to runner container - name: copy env file to runner container
uses: https://${{ env.GIT_USERNAME }}:${{ env.GIT_PASSWORD }}@${{ vars.DOMAIN_OF_GITEA}}/actions/ssh-action@main uses: appleboy/ssh-action@v1
with: with:
host: ${{ env.SSH_HOST }} host: ${{ env.SSH_HOST }}
username: ${{ env.SSH_USER }} username: ${{ env.SSH_USER }}
@ -55,7 +55,7 @@ jobs:
fi fi
- name: Setup Go environment with cache - name: Setup Go environment with cache
uses: https://${{ env.GIT_USERNAME }}:${{ env.GIT_PASSWORD }}@${{ vars.DOMAIN_OF_GITEA}}/actions/setup-go@main uses: actions/setup-go@v3
with: with:
go-version: ${{ matrix.go }} go-version: ${{ matrix.go }}
cache: true cache: true