aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-03-03 19:17:16 -0500
committerAdam Harrison <adamdharrison@gmail.com>2024-03-03 19:17:16 -0500
commit6428a8cfd724109d500c3b8c71dc9ba93a4e9425 (patch)
tree1c4f8bbb2b202271e1bc771c3d04cfdf28c1137e /.github/workflows/build.yml
parent6639d1ec90f94db27c20a69dd7322334c3a0f527 (diff)
downloadlite-xl-plugin-manager-6428a8cfd724109d500c3b8c71dc9ba93a4e9425.tar.gz
lite-xl-plugin-manager-6428a8cfd724109d500c3b8c71dc9ba93a4e9425.zip
Removed File::Slurp.
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 8d88dd8..e772bff 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -45,7 +45,7 @@ jobs:
- name: Create Release(s)
env: { GITHUB_TOKEN: "${{ github.token }}", ARTIFACTS: "lpm.x86_64-linux lpm.riscv64-linux lpm.x86_64-windows.exe lpm.arm-android lpm.aarch64-android lpm.x86-android lpm.x86_64-android" }
run: |
- perl -MFile::Slurp -pe 'last if $_ =~ m/^\s*#/ && $_ !~ m/#\s*$ENV{VERSION}/' < CHANGELOG.md > NOTES.md
+ perl -pe 'last if $_ =~ m/^\s*#/ && $_ !~ m/#\s*$ENV{VERSION}/' < CHANGELOG.md > NOTES.md
gh release delete -y continuous || true; gh release create -t 'Continuous Release' -F NOTES.md continuous $ARTIFACTS
if [[ `git tag --points-at HEAD v* | head -c 1` == "v" ]]; then
gh release delete -y v$VERSION || true;
@@ -57,7 +57,7 @@ jobs:
env: { DISCORD_WEBHOOK: "${{ secrets.DISCORD_WEBHOOK }}" }
run: |
if [[ `git tag --points-at HEAD v* | head -c 1` == "v" ]]; then
- perl -MFile::Slurp -e 'use JSON qw(encode_json from_json); print encode_json({ content => "## Lite XL Plugin Manager $ENV{VERSION} has been released!\nhttps://github.com/lite-xl/lite-xl-plugin-manager/releases/tag/v$ENV{VERSION}\n\n### Changes in $ENV{VERSION}:\n" . read_file("NOTES.md") })' |
+ perl -e 'use JSON qw(encode_json from_json); $/ = undef; print encode_json({ content => "## Lite XL Plugin Manager $ENV{VERSION} has been released!\nhttps://github.com/lite-xl/lite-xl-plugin-manager/releases/tag/v$ENV{VERSION}\n\n### Changes in $ENV{VERSION}:\n" . <> })' < NOTES.md |
curl -H 'Content-Type:application/json' $DISCORD_WEBHOOK -X POST -d "$(</dev/stdin)"
fi