File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -50,13 +50,19 @@ jobs:
50
50
verbose : true
51
51
52
52
# Produce an Alire release manifest
53
- - name : Make Release Manifest
53
+ - name : Configure Github credentials
54
54
run : |
55
55
# Set user GitHub login required for `alr publish`
56
56
alr config --set --global user.github_login ${{github.repository_owner}}
57
57
58
- # Run Alire publish assistant
59
- alr publish ${{github.server_url}}/${{github.repository}} ${{github.sha}}
58
+ # Run Alire publish assistant with the appropriate commit
59
+ alr publish ${{github.server_url}}/${{github.repository}} ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
60
+
61
+ - if : github.event_name == 'pull_request'
62
+ run : alr publish ${{github.server_url}}/${{github.repository}} ${{ github.event.pull_request.head.sha }}
63
+
64
+ - if : github.event_name == 'push'
65
+ run : alr publish ${{github.server_url}}/${{github.repository}} ${{ github.sha }}
60
66
61
67
# Save the path to the release manifest for the next step.
62
68
# This is a little trick to get around the fact that the actions/upload-release-asset doesn't allow globing pattern.
You can’t perform that action at this time.
0 commit comments