parent
ceb5118fab
commit
73974f59cb
|
|
@ -229,11 +229,19 @@ jobs:
|
|||
id: vars
|
||||
run: echo "tag=release-$(TZ='Asia/Shanghai' date +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT # 包含$GITHUB_ENV 的作用域,全steps也可访问
|
||||
- name: 自定提交tag
|
||||
env:
|
||||
GITEA_USER: xiehaijun
|
||||
TAG: ${{ steps.vars.outputs.tag }}
|
||||
GITEA_PAT: ${{ secrets.MY_APP_TOKEN }}
|
||||
GITEA_REPO: xiehaijun/study-plan
|
||||
GITEA_HOST: git.ewancle.com
|
||||
run: |
|
||||
git config user.name "github-actions"
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "actions@github.com"
|
||||
git tag -a ${{ steps.vars.outputs.tag }} -m "Automated release"
|
||||
git push origin ${{ steps.vars.outputs.tag }}
|
||||
# git push origin ${{ steps.vars.outputs.tag }}
|
||||
# git push https://x-access-token:${PAT_PUSH}@github.com/${REPO}.git "$TAG"
|
||||
git push https://${GITEA_USER}:${GITEA_PAT}@${GITEA_HOST}/${GITEA_REPO}.git "$TAG"
|
||||
- name: 获取跨job上游job的输出变量值
|
||||
run: echo "The tag from previous job is ${{ needs.upload.outputs.tag-name }}"
|
||||
- name: Download All Artifacts
|
||||
|
|
|
|||
Loading…
Reference in New Issue