Skip to content

Commit

Permalink
Switch to using environment files
Browse files Browse the repository at this point in the history
"save-state" and "set-output" workflow commands were made deprecated in
October 2022.
  • Loading branch information
tangalbert919 committed Jul 1, 2023
1 parent 018944e commit 0b021fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dump_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
run: |
curl -L ${{ inputs.ota }} -o ota.zip
unzip -j ota.zip META-INF/com/android/metadata
echo ::set-output name=ota_ver::`cat metadata | grep ^version_name= | cut -b 14-`
echo ::set-output name=fingerprint::`cat metadata | grep ^post-build= | cut -b 12-`
echo "ota_ver=`cat metadata | grep ^version_name= | cut -b 14-`" >> "$GITHUB_OUTPUT"
echo "fingerprint=`cat metadata | grep ^post-build= | cut -b 12-`" >> "$GITHUB_OUTPUT"
- name: Dump
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dump_incremental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ jobs:
id: download
run: |
curl -L ${{ inputs.ota1 }} -o ota1.zip
echo ::set-output name=ota1_ver::`unzip -p ota1.zip META-INF/com/android/metadata | grep ^version_name= | cut -b 14-`
echo "ota1_ver=`unzip -p ota1.zip META-INF/com/android/metadata | grep ^version_name= | cut -b 14-`" >> "$GITHUB_OUTPUT"
curl -L ${{ inputs.ota2 }} -o ota2.zip
echo ::set-output name=ota2_ver::`unzip -p ota2.zip META-INF/com/android/metadata | grep ^version_name= | cut -b 14-`
echo "ota2_ver=`unzip -p ota2.zip META-INF/com/android/metadata | grep ^version_name= | cut -b 14-`" >> "$GITHUB_OUTPUT"
- name: Download (Part 2)
id: download_p2
if: inputs.ota3 != ''
run: |
curl -L ${{ inputs.ota3 }} -o ota3.zip
echo ::set-output name=ota3_ver::`unzip -p ota3.zip META-INF/com/android/metadata | grep ^version_name= | cut -b 14-`
echo "ota3_ver=`unzip -p ota3.zip META-INF/com/android/metadata | grep ^version_name= | cut -b 14-`" >> "$GITHUB_OUTPUT"
- name: Dump (Part 1)
run: |
Expand Down

0 comments on commit 0b021fc

Please sign in to comment.