File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 6969 curl --fail-with-body --no-progress-meter -i https://0d9e.tech/deploy -X POST \
7070 -H "x-token: ${{ github.ref == 'refs/heads/amogus' && secrets.STAGING_TOKEN || secrets.DEPLOY_TOKEN }}"
7171
72+ - name : Comment
73+ if : ${{ github.ref == 'refs/heads/amogus' && steps.lint.outcome == 'success' }}
74+ env :
75+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
76+ run : |
77+ num=$(gh pr list -B sus -H amogus --json number | jq .[0].number -r)
78+ if [ "$num" = "null" ]; then
79+ gh pr create --base sus --head amogus --title "Release to sus" --body ""
80+ num=$(gh pr list -B sus -H amogus --json number | jq .[0].number -r)
81+ fi
82+ gh pr comment $num --body "@${{ github.actor }} Your changes were deployed to staging, you can merge them here."
83+
7284 # else: revert the commit(s)
7385 - name : Revert commit(s)
7486 if : ${{ steps.lint.outcome != 'success' }}
You can’t perform that action at this time.
0 commit comments