diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index d8e2524..cec84c2 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -26,6 +26,11 @@ on: required: false type: boolean default: false + COMMIT_CHANGELOG: + description: 'Update Changelog' + type: boolean + required: false + default: false concurrency: group: ${{ github.head_ref || github.run_id }} @@ -33,6 +38,8 @@ concurrency: jobs: build-apk: uses: ./.github/workflows/build-artifact.yml + with: + COMMIT_CHANGELOG: ${{ inputs.COMMIT_CHANGELOG }} secrets: ENVS: ${{ secrets.ENVS }} @@ -67,6 +74,7 @@ jobs: tag: Build-${{ steps.get-date.outputs.date }} artifactErrorsFailBuild: true bodyFile: changelog.md + - name: Sleep for 10 seconds run: | sleep 10 diff --git a/.github/workflows/build-artifact.yml b/.github/workflows/build-artifact.yml index 857e0eb..e1b97f5 100644 --- a/.github/workflows/build-artifact.yml +++ b/.github/workflows/build-artifact.yml @@ -4,6 +4,11 @@ env: COMPOSE_DOCKER_CLI_BUILD: 1 on: workflow_dispatch: + inputs: + FILES_TO_EXPECT: + type: string + required: false + default: '-1' workflow_call: secrets: ENVS: @@ -12,7 +17,11 @@ on: FILES_TO_EXPECT: type: string required: false - default: -1 + default: '-1' + COMMIT_CHANGELOG: + type: boolean + required: false + default: false jobs: build-apk: @@ -41,3 +50,13 @@ jobs: apks/VancedMicroG.apk" if-no-files-found: error files-to-expect: ${{ inputs.FILES_TO_EXPECT }} + + - name: Commit Update file + if: ${{ inputs.COMMIT_CHANGELOG }} + uses: stefanzweifel/git-auto-commit-action@v4 + with: + branch: changelogs + skip_checkout: true + file_pattern: changelog.md + commit_message: New Build + push_options: '--force'