Skip to content

Commit

Permalink
Pretty print
Browse files Browse the repository at this point in the history
  • Loading branch information
OoLunar committed Jul 7, 2024
1 parent d8fe623 commit 98800a1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/package-sodium.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ git fetch --tags

# Export the latest tag
SODIUM_VERSION="$(git describe --tags $(git rev-list --tags --max-count=1))"
echo "version=$SODIUM_VERSION" >> $GITHUB_OUTPUT
echo "version=$(echo $SODIUM_VERSION | perl -pe '($_)=/([0-9]+([.][0-9]+)+)/')" >> $GITHUB_OUTPUT

# Checkout the latest tag
git checkout "$SODIUM_VERSION"
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/opus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,12 @@ jobs:
sed -i "s/<VERSION>.*<\/VERSION>/<VERSION>${{ needs.build.outputs.version }}<\/VERSION>/" "${{ github.workspace }}/src/DSharpPlus.VoiceLink.Natives.Opus/DSharpPlus.VoiceLink.Natives.Opus.csproj"
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "Push changes"
uses: EndBug/add-and-commit@v9
with:
add: "src/DSharpPlus.VoiceLink.Natives.Opus/DSharpPlus.VoiceLink.Natives.Opus.csproj"
default_author: github_actions
message: Update Opus version to ${{ needs.build.outputs.version }}
pull: "--rebase --autostash"
push: true
10 changes: 9 additions & 1 deletion .github/workflows/sodium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,12 @@ jobs:
sed -i "s/<VERSION>.*<\/VERSION>/<VERSION>${{ needs.build.outputs.version }}<\/VERSION>/" "${{ github.workspace }}/src/DSharpPlus.VoiceLink.Natives.Sodium/DSharpPlus.VoiceLink.Natives.Sodium.csproj"
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "Push changes"
uses: EndBug/add-and-commit@v9
with:
add: "src/DSharpPlus.VoiceLink.Natives.Sodium/DSharpPlus.VoiceLink.Natives.Sodium.csproj"
default_author: github_actions
message: Update Sodium version to ${{ needs.build.outputs.version }}
pull: "--rebase --autostash"
push: true

0 comments on commit 98800a1

Please sign in to comment.