Skip to content

Commit

Permalink
fix(ci): add a tag even for manual release
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbrozer committed Aug 13, 2023
1 parent 65487c1 commit eabd214
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/auto-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,25 @@ jobs:
push_options: '--follow-tags'

- name: "Create auto release"
if: ${{ success() && github.event_name != 'workflow_dispatch' && steps.changes.outputs.ttrss_has_changes == 'yes'}}
if: ${{ success() && steps.changes.outputs.ttrss_has_changes == 'yes' }}
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.RELEASE_PAT }}
bodyFile: "/tmp/ttrss_changes.md"
tag: "${{ steps.changes.outputs.ttrss_tag_name }}"

- name: "Manual tag version"
if: ${{ success() && github.event_name == 'workflow_dispatch' && steps.changes.outputs.ttrss_has_changes == 'no' }}
run: |
set -e
cd src/
git tag -a -m "Manual release" "${{ steps.changes.outputs.ttrss_tag_name }}"
git push --follow-tags
- name: "Create manual release"
if: ${{ success() && github.event_name == 'workflow_dispatch' }}
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.RELEASE_PAT }}
generateReleaseNotes: true
tag: "${{ steps.changes.outputs.ttrss_tag_name }}"

0 comments on commit eabd214

Please sign in to comment.