Commit 170f868 1 parent 0f2a492 commit 170f868 Copy full SHA for 170f868
File tree 4 files changed +25
-12
lines changed
4 files changed +25
-12
lines changed Original file line number Diff line number Diff line change 21
21
HOMEBREW_GITHUB_PACKAGES_TOKEN : ${{ github.token }}
22
22
HOMEBREW_GITHUB_PACKAGES_USER : ${{ github.actor }}
23
23
PULL_REQUEST : ${{ github.event.pull_request.number }}
24
- run : brew pr-pull --debug --tap=$ GITHUB_REPOSITORY $ PULL_REQUEST
24
+ run : brew pr-pull --debug --tap="${ GITHUB_REPOSITORY}" "${ PULL_REQUEST}"
25
25
26
26
- name : Push commits
27
27
uses : Homebrew/actions/git-try-push@master
33
33
if : github.event.pull_request.head.repo.fork == false
34
34
env :
35
35
BRANCH : ${{ github.event.pull_request.head.ref }}
36
- run : git push --delete origin $ BRANCH
36
+ run : git push --delete origin "${ BRANCH}"
Original file line number Diff line number Diff line change 2
2
3
3
## How do I install these formulae?
4
4
5
- ` brew install indigo-dc/oidc-agent/<formula> `
5
+ ```
6
+ brew install indigo-dc/oidc-agent/<formula>
7
+ ```
8
+ i.e.
9
+ ```
10
+ brew install indigo-dc/oidc-agent/oidc-agent
11
+ ```
6
12
7
13
Or ` brew tap indigo-dc/oidc-agent ` and then ` brew install <formula> ` , i.e.
14
+
8
15
```
9
16
brew tap indigo-dc/oidc-agent
10
17
brew install oidc-agent
11
- ``````
12
18
```
13
19
14
20
## Documentation
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ set -e
4
+
3
5
token=$( git config --global github.token)
4
6
5
7
json=$( http https://api.github.com/repos/indigo-dc/oidc-agent/releases/latest " Authorization: Bearer ${token} " )
6
- tag=$( echo " $json " | jq -r ' .tag_name' )
8
+ tag=$( echo " ${ json} " | jq -r ' .tag_name' )
7
9
version=${tag/# v/ }
8
10
9
- " $( dirname " $0 " ) " /updateToRelease.sh " $version " " $1 "
11
+ " $( dirname " $0 " ) " /updateToRelease.sh " ${ version} " " $1 "
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ set -e
4
+
3
5
token=$( git config --global github.token)
4
6
export token
5
7
6
8
version=$1
7
- tag=" v$version "
9
+ tag=" v${ version} "
8
10
formula=$2
9
11
10
- git checkout -b " $version "
12
+ git checkout -b " ${ version} "
11
13
12
14
tar_url=$( echo " https://github.com/indigo-dc/oidc-agent/archive/refs/tags/VTAG.tar.gz" | sed \" s/VTAG/" ${tag} " /g\" )
13
- sha256=$( curl -L " $tar_url " 2> /dev/null| sha256sum | awk ' {print $1}' )
15
+ wget " ${tar_url} " -O /tmp/prerel.tar.gz -q
16
+ sha256_output=$( sha256sum /tmp/prerel.tar.gz)
17
+ sha256=$( printf " %s" " ${sha256_output} " | awk ' {print $1}' )
14
18
15
- sed -i " s!^[[:space:]]*url\ \" .*\" ! url\ \" ${tar_url} \" !g" " $formula "
16
- sed -i " s/sha256\ \" .*\" /sha256\ \" ${sha256} \" /g" " $formula "
19
+ sed -i " s!^[[:space:]]*url\ \" .*\" ! url\ \" ${tar_url} \" !g" " ${ formula} "
20
+ sed -i " s/sha256\ \" .*\" /sha256\ \" ${sha256} \" /g" " ${ formula} "
17
21
18
22
echo " Updated url to: ${tar_url} "
19
23
echo " Updated sha256 to: ${sha256} "
20
24
21
- git add " $formula "
25
+ git add " ${ formula} "
22
26
git commit -m \" " ${version} " \"
27
+
You can’t perform that action at this time.
0 commit comments