Skip to content

Commit

Permalink
update yml @3
Browse files Browse the repository at this point in the history
  • Loading branch information
VenkatTeja committed Jul 23, 2023
1 parent 2667234 commit 060669f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/push_build_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,23 +76,21 @@ jobs:
- name: Read manifest.json
id: set_version
run: |
content=`cat ./chrome-extension/public/manifest.json`
content="${content//'%'/'%25'}"
content="${content//$'\n'/'%0A'}"
content="${content//$'\r'/'%0D'}"
echo "::set-output name=manifestJson::$content"
echo 'MANIFEST_JSON<<EOF' >> $GITHUB_ENV
cat ./chrome-extension/public/manifest.json >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Get current version
run: echo "${{fromJson(steps.set_version.outputs.manifestJson).version}}""
run: echo '${{ fromJson(env.MANIFEST_JSON).version }}'

- name: Create Pre-Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{fromJson(steps.set_version.outputs.manifestJson).version}}
release_name: Release ${{fromJson(steps.set_version.outputs.manifestJson).version}}
tag_name: ${{ fromJson(env.MANIFEST_JSON).version }}
release_name: Release ${{ fromJson(env.MANIFEST_JSON).version }}
draft: false
prerelease: true

Expand Down

0 comments on commit 060669f

Please sign in to comment.