File tree Expand file tree Collapse file tree 3 files changed +33
-1
lines changed Expand file tree Collapse file tree 3 files changed +33
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " on " :
3
+ schedule :
4
+ # 18:00 on Friday
5
+ - cron : 0 18 * * 5
6
+ workflow_dispatch :
7
+
8
+ # https://github.com/softprops/action-gh-release/issues/236
9
+ permissions :
10
+ contents : write
11
+
12
+ jobs :
13
+ deploy :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+ with :
18
+ token : ${{ secrets.GH_TOKEN }}
19
+ - name : Update version
20
+ run : |
21
+ scripts/update-version.pl pyproject.toml
22
+ - uses : stefanzweifel/git-auto-commit-action@v5
Original file line number Diff line number Diff line change @@ -17,4 +17,4 @@ perl5-$(project_version)/Configure: v$(project_version).tar.gz
17
17
tar xzf $<
18
18
19
19
v$(project_version ) .tar.gz :
20
- curl -O https://github.com/Perl/perl5/archive/refs/tags/$@
20
+ curl -LO https://github.com/Perl/perl5/archive/refs/tags/$@
Original file line number Diff line number Diff line change
1
+ # !/usr/bin/env -S perl -pi
2
+ BEGIN {
3
+ exit if scalar @ARGV == 0;
4
+ $version =
5
+ ` curl -s https://api.github.com/repos/Perl/perl5/releases/latest | jq -r .tag_name` ;
6
+ chomp $version ;
7
+ $version =~ s / ^v// ;
8
+ }
9
+
10
+ s / (?<=version = ")[^"]+/ $version / ;
You can’t perform that action at this time.
0 commit comments