File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -34,22 +34,13 @@ jobs:
34
34
sed -i \
35
35
-e '/bazel_dep(name = "rules_haskell"/s/version = "[^"]*"/version = "${{ steps.latest.outputs.version }}"/' \
36
36
start
37
- # update http_archive attrs between `cat > WORKSPACE` and `EOF`
38
- sed -i \
39
- -e '/cat > WORKSPACE/,/^EOF/{' \
40
- -e ' s%sha256 = "[^"]*"%sha256 = "${{ steps.latest.outputs.hash }}"%; ' \
41
- -e ' s%strip_prefix = "[^"]*"%strip_prefix = "rules_haskell-${{ steps.latest.outputs.version }}"%; ' \
42
- -e ' s%url = "[^"]*"%url = "https://github.com/tweag/rules_haskell/releases/download/v${{ steps.latest.outputs.version }}/rules_haskell-${{ steps.latest.outputs.version }}.tar.gz"%' \
43
- -e '}' \
44
- start
45
- # update http_archive attrs in docs between `name = "rules_haskell"` and `url = "`
37
+ # update http_archive attrs between `name = "rules_haskell"` and `url = "`
46
38
sed -i \
47
39
-e '/name = "rules_haskell"/,/url = "/{' \
48
- -e ' s%sha256 = "[^"]*"%sha256 = "${{ steps.latest.outputs.hash }}"%; ' \
49
- -e ' s%strip_prefix = "[^"]*"%strip_prefix = "rules_haskell-${{ steps.latest.outputs.version }}"%; ' \
50
- -e ' s%url = "[^"]*"%url = "https://github.com/tweag/rules_haskell/releases/download/v${{ steps.latest.outputs.version }}/rules_haskell-${{ steps.latest.outputs.version }}.tar.gz"%; ' \
40
+ -e ' s%x\{64\}%${{ steps.latest.outputs.hash }}%; ' \
41
+ -e ' s%M[.]NN%${{ steps.latest.outputs.version }}%g ' \
51
42
-e '}' \
52
- docs/haskell-use-cases.rst
43
+ start docs/haskell-use-cases.rst
53
44
- name : Commit and Push
54
45
run : |
55
46
if ! git diff --exit-code ; then
You can’t perform that action at this time.
0 commit comments