-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from fabianbormann/feature/network_selector
Feature/network selector
- Loading branch information
Showing
4 changed files
with
55 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,18 +31,21 @@ jobs: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
release: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
|
||
- name: 👀 Compute versions | ||
run: | | ||
echo "PREVIOUS_VERSION=$(perl -ne 'print $1 if /📦 Cardano Node Ui v([^\s]+)/' README.md)" >> $GITHUB_ENV | ||
echo "VERSION=$(echo "${{ github.ref }}" | sed 's/refs\/tags\/v//')" >> $GITHUB_ENV | ||
- name: 📝 Update Readme with Version | ||
run: | | ||
PREVIOUS_VERSION=$(perl -ne 'print $1 if /📦 Cardano Node Ui v([^\s]+)/' README.md) | ||
VERSION=$(echo "${{ github.ref }}" | sed 's/refs\/tags\/v//') | ||
sed -i "s/fabianbormann\/cardano-node-ui\/releases\/download\/v$PREVIOUS_VERSION\/cardano-node-ui-$PREVIOUS_VERSION.dmg/fabianbormann\/cardano-node-ui\/releases\/download\/v$VERSION\/cardano-node-ui-$VERSION.dmg/g" README.md | ||
sed -i "s/fabianbormann\/cardano-node-ui\/releases\/download\/v$PREVIOUS_VERSION\/cardano-node-ui-$PREVIOUS_VERSION.AppImage/fabianbormann\/cardano-node-ui\/releases\/download\/v$VERSION\/cardano-node-ui-$VERSION.AppImage/g" README.md | ||
sed -i "s/fabianbormann\/cardano-node-ui\/releases\/download\/v$PREVIOUS_VERSION\/cardano-node-ui-Setup-$PREVIOUS_VERSION.exe/fabianbormann\/cardano-node-ui\/releases\/download\/v$VERSION\/cardano-node-ui-Setup-$VERSION.exe/g" README.md | ||
sed -i "s/📦 Cardano Node Ui v$VERSION/📦 Cardano Node Ui v${{ github.ref.replace('refs/tags/v', '') }}/g" README.md | ||
sed -i "s/fabianbormann\/cardano-node-ui\/releases\/download\/v${{ env.PREVIOUS_VERSION }}\/cardano-node-ui-${{ env.PREVIOUS_VERSION }}.dmg/fabianbormann\/cardano-node-ui\/releases\/download\/v${{ env.VERSION }}\/cardano-node-ui-${{ env.VERSION }}.dmg/g" README.md | ||
sed -i "s/fabianbormann\/cardano-node-ui\/releases\/download\/v${{ env.PREVIOUS_VERSION }}\/cardano-node-ui-${{ env.PREVIOUS_VERSION }}.AppImage/fabianbormann\/cardano-node-ui\/releases\/download\/v${{ env.VERSION }}\/cardano-node-ui-${{ env.VERSION }}.AppImage/g" README.md | ||
sed -i "s/fabianbormann\/cardano-node-ui\/releases\/download\/v${{ env.PREVIOUS_VERSION }}\/cardano-node-ui-Setup-${{ env.PREVIOUS_VERSION }}.exe/fabianbormann\/cardano-node-ui\/releases\/download\/v${{ env.VERSION }}\/cardano-node-ui-Setup-${{ env.VERSION }}.exe/g" README.md | ||
sed -i "s/📦 Cardano Node Ui v${{ env.VERSION }}/📦 Cardano Node Ui v${{ env.VERSION }}/g" README.md | ||
- name: 📬 Commit Changes | ||
uses: EndBug/add-and-commit@v7 | ||
with: | ||
author_name: GitHub Actions | ||
author_email: [email protected] | ||
message: "chore: update README.md with version ${{ github.ref.replace('refs/tags/v', '') }}" | ||
message: 'chore: update README.md with version ${{ env.VERSION }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters