Skip to content

Commit

Permalink
PM-43060 Change endswith to contains to allow for better tag numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
mst-kialo committed Oct 19, 2023
1 parent e289c8c commit 95c9170
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/moodle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ jobs:
files: |
plugin/development/mod_kialo.zip
generate_release_notes: true
prerelease: ${{endsWith(github.ref, '-beta')}}
prerelease: ${{contains(github.ref, '-beta')}}

# Uploads the release to Moodle using its Plugin Directory API
- name: Upload to plugin directory
id: add-version
if: github.event_name == 'push' && !endsWith(github.ref, '-beta')
if: github.event_name == 'push' && !contains(github.ref, '-beta')
run: |
if [[ ! -z "${{ github.event.inputs.tag }}" ]]; then
TAGNAME="${{ github.event.inputs.tag }}"
Expand Down

0 comments on commit 95c9170

Please sign in to comment.