Skip to content

Commit

Permalink
update reference way of environment value in run step
Browse files Browse the repository at this point in the history
  • Loading branch information
tamada committed Jul 14, 2023
1 parent d2c04a8 commit bf4a85e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
uses: actions/checkout@v3

- name: build
run: URLEAP_TOKEN=${BITLY_TOKEN} make
run: make
env:
URLEAP_TOKEN: ${{ secrets.BITLY_TOKEN }}

- name: Convert coverage to lcov format
uses: jandelgado/gcov2lcov-action@v1.0.0
Expand Down
2 changes: 1 addition & 1 deletion bitly.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (bitly *Bitly) Shorten(config *Config, url string) (*ShortenUrl, error) {

func handleShortenResponse(data []byte) (*ShortenUrl, error) {
result := &ShortenUrl{}
fmt.Println("result:", string(data))
// fmt.Println("result:", string(data))
err := json.Unmarshal(data, result)
if err != nil {
return nil, err
Expand Down

0 comments on commit bf4a85e

Please sign in to comment.