diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 30da097b..cda3997a 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -29,6 +29,12 @@ on: The semantic version of the app that should be released. required: true type: string + releasenotes: + description: | + Release notes of what changed in this version. + required: false + type: string + default: Bug fixes and performance improvements. workflow_call: inputs: environment: @@ -42,6 +48,12 @@ on: The semantic version of the app that should be released. required: true type: string + releasenotes: + description: | + Release notes of what changed in this version. + required: false + type: string + default: Bug fixes and performance improvements. concurrency: group: deployment @@ -61,8 +73,10 @@ jobs: run: | if [[ -z "${{ inputs.environment }}" ]]; then echo "environment=staging" >> $GITHUB_OUTPUT + echo "environment: staging" else echo "environment=${{ inputs.environment }}" >> $GITHUB_OUTPUT + echo "environment: ${{ inputs.environment }}" fi vars: name: Inject Environment Variables In Deployment Workflow @@ -92,6 +106,7 @@ jobs: echo "version=${{ inputs.version }}" >> $GITHUB_OUTPUT echo "version: ${{ inputs.version }}" fi + echo "releasenotes: ${{ inputs.releasenotes }}" buildandtest: name: Build and Test needs: determineenvironment @@ -110,5 +125,5 @@ jobs: environment: ${{ needs.determineenvironment.outputs.environment }} googleserviceinfoplistpath: 'ENGAGEHF/Supporting Files/GoogleService-Info.plist' setupsigning: true - fastlanelane: deploy environment:"${{ needs.determineenvironment.outputs.environment }}" appidentifier:"${{ needs.vars.outputs.appidentifier }}" provisioningProfile:"${{ needs.vars.outputs.provisioningProfileName }}" versionname:"${{ needs.vars.outputs.version }}" + fastlanelane: deploy environment:"${{ needs.determineenvironment.outputs.environment }}" appidentifier:"${{ needs.vars.outputs.appidentifier }}" provisioningProfile:"${{ needs.vars.outputs.provisioningProfileName }}" versionname:"${{ needs.vars.outputs.version }} releasenotes:"${{ inputs.releasenotes }}" secrets: inherit \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 121da4a6..492db5a5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,8 @@ jobs: formatreleasenotes: name: Format Release Notes runs-on: ubuntu-latest + outputs: + releasenotes: ${{ steps.releasenotes.outputs.releasenotes }} steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -30,8 +32,8 @@ jobs: python-version: '3.x' - name: Install Dependencies run: pip install requests - - name: Fetch and Process Changelog - id: changelog + - name: Fetch and Process releasenotes + id: releasenotes run: | python < releasenotes + }), submit_for_review: true, force: true, reject_if_possible: true,