File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 44
44
submodules : " recursive"
45
45
ref : ${{ github.event.pull_request.head.ref }}
46
46
repository : ${{ github.event.pull_request.head.repo.full_name }}
47
- - name : Declare some variables
48
- shell : bash
49
- run : |
50
- echo "SHA_SHORT=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
51
47
52
48
- name : Create comment
53
49
id : comment
75
71
with :
76
72
apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
77
73
accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
78
- command : pages deploy ./dist --project-name=rustmap --branch="${{ env.BRANCH_NAME }}"
74
+ command : pages deploy ./dist --project-name=rustmap --branch "${{ env.BRANCH_NAME }}"
75
+
76
+ - name : Extract hash from CF url Deploy
77
+ run : |
78
+ url_hash=$(echo "${{ steps.deploy.outputs.deployment-url }}" | sed -n 's|https://\([^.]*\).rustmap.*|\1|p')
79
+ echo "SHA_SHORT=$url_hash" >> $GITHUB_ENV
79
80
80
81
- name : Create comment
81
82
uses : peter-evans/create-or-update-comment@v4
You can’t perform that action at this time.
0 commit comments