Skip to content

Commit

Permalink
Force publishing and skip actual PR creation
Browse files Browse the repository at this point in the history
  • Loading branch information
mosteo committed Oct 25, 2024
1 parent cbfd4c5 commit 5b91bcf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,17 @@ jobs:
verbose: true

# Produce an Alire release manifest
- name: Configure Github credentials
- name: Configure Github credentials and generate manifest
shell: bash
run: |
# Set user GitHub login required for `alr publish`
alr settings --set --global user.github_login ${{github.repository_owner}}
# Run Alire publish assistant with the appropriate commit
alr publish ${{github.server_url}}/${{github.repository}} ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
# Force to allow generation for -dev version
alr -f publish --skip-submit \
${{github.server_url}}/${{github.repository}} \
${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
# Save the path to the release manifest for the next step.
# This is a little trick to get around the fact that the actions/upload-release-asset doesn't allow globing pattern.
Expand Down

0 comments on commit 5b91bcf

Please sign in to comment.