Skip to content

Commit

Permalink
fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
chendelin1982 authored Dec 15, 2023
1 parent 9500fb2 commit f001589
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ jobs:

# release media step1
- name: Create more files
run: |
version_core=$(grep 'ARG MEDIA_VERSION' "docker/apphub/Dockerfile" | cut -d'"' -f2 | xargs)
cp ${{env.DIRECTORY}}/media.zip media/media-latest.zip
cp media/media-latest.zip media/media-$version_core.zip
jq --arg version "$version_core" '.Version = $version' media/media.json > media/temp.json && mv media/temp.json media/media.json
run: |
version_core=$(grep 'ARG MEDIA_VERSION' "docker/apphub/Dockerfile" | cut -d'"' -f2 | xargs)
cp ${{env.DIRECTORY}}/media.zip media/media-latest.zip
cp media/media-latest.zip media/media-$version_core.zip
jq --arg version "$version_core" '.Version = $version' media/media.json > media/temp.json && mv media/temp.json media/media.json
if: env.APP == 'apphub' && env.MEDIA_FROM == 'source'

# release media step2
Expand Down

0 comments on commit f001589

Please sign in to comment.