mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-06-28 20:09:51 +00:00
Updated workflow
This commit is contained in:
parent
67bc6a1716
commit
fc2305266f
1 changed files with 16 additions and 12 deletions
28
.github/workflows/release-stable.yaml
vendored
28
.github/workflows/release-stable.yaml
vendored
|
@ -24,14 +24,15 @@ jobs:
|
||||||
- name: Decode .env
|
- name: Decode .env
|
||||||
run: echo "${{ secrets.ENV }}" | base64 --decode > .env
|
run: echo "${{ secrets.ENV }}" | base64 --decode > .env
|
||||||
- name: Read pubspec.yaml
|
- name: Read pubspec.yaml
|
||||||
uses: pietrobolcato/action-read-yaml@1.0.0
|
uses: jbutcher5/read-yaml@1.6
|
||||||
id: read_pubspec
|
id: read_pubspec
|
||||||
with:
|
with:
|
||||||
config: ${{ github.workspace }}/pubspec.yaml
|
file: './pubspec.yaml' # File to read from
|
||||||
|
key-path: '["version"]'
|
||||||
- name: Save version on env variable
|
- name: Save version on env variable
|
||||||
id: save_version
|
id: save_version
|
||||||
run: |
|
run: |
|
||||||
version=${{ steps.read_pubspec.outputs['version'] }}
|
version=${{ steps.read_pubspec.outputs.data }}
|
||||||
IFS='+'
|
IFS='+'
|
||||||
read -r -a split <<< "$version"
|
read -r -a split <<< "$version"
|
||||||
echo "VERSION_NAME=$(echo ${split[0]})" >> $GITHUB_ENV
|
echo "VERSION_NAME=$(echo ${split[0]})" >> $GITHUB_ENV
|
||||||
|
@ -80,14 +81,15 @@ jobs:
|
||||||
- name: Decode .env
|
- name: Decode .env
|
||||||
run: echo "${{ secrets.ENV }}" | base64 --decode > .env
|
run: echo "${{ secrets.ENV }}" | base64 --decode > .env
|
||||||
- name: Read pubspec.yaml
|
- name: Read pubspec.yaml
|
||||||
uses: pietrobolcato/action-read-yaml@1.0.0
|
uses: jbutcher5/read-yaml@1.6
|
||||||
id: read_pubspec
|
id: read_pubspec
|
||||||
with:
|
with:
|
||||||
config: ${{ github.workspace }}/pubspec.yaml
|
file: './pubspec.yaml'
|
||||||
|
key-path: '["version"]'
|
||||||
- name: Save version on env variable
|
- name: Save version on env variable
|
||||||
id: save_version
|
id: save_version
|
||||||
run: |
|
run: |
|
||||||
version=${{ steps.read_pubspec.outputs['version'] }}
|
version=${{ steps.read_pubspec.outputs.data }}
|
||||||
IFS='+'
|
IFS='+'
|
||||||
read -r -a split <<< "$version"
|
read -r -a split <<< "$version"
|
||||||
echo "VERSION_NAME=$(echo ${split[0]})" >> $GITHUB_ENV
|
echo "VERSION_NAME=$(echo ${split[0]})" >> $GITHUB_ENV
|
||||||
|
@ -139,14 +141,15 @@ jobs:
|
||||||
- name: Decode .env
|
- name: Decode .env
|
||||||
run: echo "${{ secrets.ENV }}" | base64 --decode > .env
|
run: echo "${{ secrets.ENV }}" | base64 --decode > .env
|
||||||
- name: Read pubspec.yaml
|
- name: Read pubspec.yaml
|
||||||
uses: pietrobolcato/action-read-yaml@1.0.0
|
uses: jbutcher5/read-yaml@1.6
|
||||||
id: read_pubspec
|
id: read_pubspec
|
||||||
with:
|
with:
|
||||||
config: ${{ github.workspace }}/pubspec.yaml
|
file: './pubspec.yaml'
|
||||||
|
key-path: '["version"]'
|
||||||
- name: Save version on env variable
|
- name: Save version on env variable
|
||||||
id: save_version
|
id: save_version
|
||||||
run: |
|
run: |
|
||||||
version=${{ steps.read_pubspec.outputs['version'] }}
|
version=${{ steps.read_pubspec.outputs.data }}
|
||||||
IFS='+'
|
IFS='+'
|
||||||
read -r -a split <<< "$version"
|
read -r -a split <<< "$version"
|
||||||
echo "VERSION_NAME=$(echo ${split[0]})" >> $GITHUB_ENV
|
echo "VERSION_NAME=$(echo ${split[0]})" >> $GITHUB_ENV
|
||||||
|
@ -201,14 +204,15 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
[IO.File]::WriteAllBytes('.env', [Convert]::FromBase64String('${{ secrets.ENV }}'))
|
[IO.File]::WriteAllBytes('.env', [Convert]::FromBase64String('${{ secrets.ENV }}'))
|
||||||
- name: Read pubspec.yaml
|
- name: Read pubspec.yaml
|
||||||
uses: pietrobolcato/action-read-yaml@1.0.0
|
uses: jbutcher5/read-yaml@1.6
|
||||||
id: read_pubspec
|
id: read_pubspec
|
||||||
with:
|
with:
|
||||||
config: ${{ github.workspace }}/pubspec.yaml
|
file: './pubspec.yaml'
|
||||||
|
key-path: '["version"]'
|
||||||
- name: Save version on env variable
|
- name: Save version on env variable
|
||||||
id: save_version
|
id: save_version
|
||||||
run: |
|
run: |
|
||||||
version=${{ steps.read_pubspec.outputs['version'] }}
|
version=${{ steps.read_pubspec.outputs.data }}
|
||||||
IFS='+'
|
IFS='+'
|
||||||
read -r -a split <<< "$version"
|
read -r -a split <<< "$version"
|
||||||
echo "VERSION_NAME=$(echo ${split[0]})" >> $GITHUB_ENV
|
echo "VERSION_NAME=$(echo ${split[0]})" >> $GITHUB_ENV
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue