Skip to content

Commit

Permalink
updates releases
Browse files Browse the repository at this point in the history
  • Loading branch information
CalinR committed Mar 4, 2024
1 parent 9937a64 commit c2952df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
create_release:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
GH_TOKEN: ${{ github.token }}
outputs:
new_version: ${{ steps.determine_new_version.outputs.new_version }}
steps:
- uses: actions/checkout@v4
- name: determine new version
id: determine_new_version
env:
GH_TOKEN: ${{ github.token }}
run: |
last_release=`gh release list | head -n 1 | awk '{print $3}'`
release_type=${{ inputs.releaseType }}
Expand Down Expand Up @@ -57,6 +57,7 @@ jobs:
- name: Bump composer.json version
env:
new_version: ${{ steps.determine_new_version.outputs.new_version }}
GH_TOKEN: ${{ secrets.token_github }}
run: |
echo "New version: $new_version"
jq '.version = $version' --arg version $new_version composer.json > composer.new.json
Expand Down Expand Up @@ -84,6 +85,7 @@ jobs:
- name: Create github release
env:
new_version: v${{ steps.determine_new_version.outputs.new_version }}
GH_TOKEN: ${{ secrets.token_github }}
run: |
gh release create --generate-notes --latest $new_version

0 comments on commit c2952df

Please sign in to comment.