Skip to content

Commit

Permalink
Create settings.json (#23)
Browse files Browse the repository at this point in the history
* ops: Create settings.json

* Update create-release.yml
  • Loading branch information
rickycpadilla authored Sep 24, 2024
1 parent 2d61b9f commit 693b5d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,23 +105,23 @@ jobs:
if: ${{ github.event.inputs.release-type == 'major' }}
with:
name: "settings.json"
dir: "./Sources/Passage/Resources/"
dir: "./Sources/Passage/"
json: "{\n\t\"version\": \"${{ needs.determine-next-versions.outputs.next-major }}\"\n}"

- name: Update minor version
uses: jsdaniell/[email protected]
if: ${{ github.event.inputs.release-type == 'minor' }}
with:
name: "settings.json"
dir: "./Sources/Passage/Resources/"
dir: "./Sources/Passage/"
json: "{\n\t\"version\": \"${{ needs.determine-next-versions.outputs.next-minor }}\"\n}"

- name: Update patch version
uses: jsdaniell/[email protected]
if: ${{ github.event.inputs.release-type == 'patch' }}
with:
name: "settings.json"
dir: "./Sources/Passage/Resources/"
dir: "./Sources/Passage/"
json: "{\n\t\"version\": \"${{ needs.determine-next-versions.outputs.next-patch }}\"\n}"

- name: Commit major version change
Expand Down Expand Up @@ -367,4 +367,4 @@ jobs:
body: |
This PR was created by the create-release-branch workflow.
New Release: v${{ needs.determine-next-versions.outputs.next-patch }}
I've updated the version name and code commit: ${{ steps.make-commit.outputs.commit }}.
I've updated the version name and code commit: ${{ steps.make-commit.outputs.commit }}.
3 changes: 3 additions & 0 deletions Sources/Passage/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"version": "1.0.0"
}

0 comments on commit 693b5d2

Please sign in to comment.