added needs

This commit is contained in:
Vadim 2023-06-25 12:44:55 +02:00
parent b79f1bd509
commit 86f521b18d

View file

@ -98,6 +98,7 @@ jobs:
update-version-in-repo: update-version-in-repo:
name: Update repo version name: Update repo version
needs: [build]
runs-on: macos-11 runs-on: macos-11
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -105,7 +106,7 @@ jobs:
submodules: recursive submodules: recursive
- name: Increment build number & replace version number - name: Increment build number & replace version number
run: $UPDATE_VERSION_SCRIPT run: perl -i -pe 's/^(version:\s+)(\d+\.\d+\.\d+)(\+)(\d+)$/$1.${{ github.event.inputs.version }}.$3.($4+1)/e' pubspec.yaml
- name: Commit and push changes - name: Commit and push changes
run: | run: |
@ -118,6 +119,7 @@ jobs:
create-release: create-release:
name: Create Github release name: Create Github release
needs: [build, update-version-in-repo]
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: write contents: write
@ -127,6 +129,6 @@ jobs:
submodules: recursive submodules: recursive
- uses: ncipollo/release-action@v1 - uses: ncipollo/release-action@v1
with: with:
artifacts: "m3_lightmeter_apk.apk, m3_lightmeter_bundle.aab" artifacts: "m3_lightmeter_apk, m3_lightmeter_bundle"
skipIfReleaseExists: true skipIfReleaseExists: true
tag: "v${{ github.event.inputs.version }}" tag: "v${{ github.event.inputs.version }}"