Skip to content

Commit

Permalink
Merge pull request #90 from ndigitals/develop
Browse files Browse the repository at this point in the history
chore(ci): Fixes GitHub Actions workflow dispatching.
  • Loading branch information
timnolte authored May 15, 2023
2 parents ae3ec9c + f970825 commit 5ea9eaa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ jobs:
- name: Get Versions
id: semver
uses: ietf-tools/semver-action@v1
if: matrix.PHP_VERSION == env.PHP_STABLE_VERSION
if: matrix.PHP_VERSION == env.PHP_STABLE_VERSION && github.event_name == 'push'
with:
token: ${{ github.token }}
branch: main

- name: Create Release Name
id: release-name
if: matrix.PHP_VERSION == env.PHP_STABLE_VERSION
if: matrix.PHP_VERSION == env.PHP_STABLE_VERSION && github.event_name == 'push'
run: |
RELEASE_NAME=$(echo ${{ steps.semver.outputs.nextStrict }} Release)
echo "RELEASE_NAME=$RELEASE_NAME" >> $GITHUB_OUTPUT
Expand All @@ -107,7 +107,7 @@ jobs:
- name: Generate a Changelog
id: changelog
uses: mrchief/[email protected]
if: matrix.PHP_VERSION == env.PHP_STABLE_VERSION
if: matrix.PHP_VERSION == env.PHP_STABLE_VERSION && github.event_name == 'push'
with:
previousReleaseTagNameOrSha: ${{ steps.semver.outputs.current }}
nextReleaseTagName: 'main'
Expand All @@ -116,7 +116,7 @@ jobs:
# https://github.com/marketplace/actions/create-release
- name: Create Release
uses: ncipollo/[email protected]
if: matrix.PHP_VERSION == env.PHP_STABLE_VERSION
if: matrix.PHP_VERSION == env.PHP_STABLE_VERSION && github.event_name == 'push'
with:
name: ${{ steps.release-name.outputs.RELEASE_NAME }}
tag: ${{ steps.semver.outputs.next }}
Expand Down

0 comments on commit 5ea9eaa

Please sign in to comment.