Skip to content

Commit

Permalink
github.event.repository.name
Browse files Browse the repository at this point in the history
  • Loading branch information
shoce committed Aug 27, 2023
1 parent a613410 commit b60a27d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ jobs:
with:
go-version: '^1.21.0'
- name: go build
run: GOOS=linux GOARCH=amd64 go build -o hs.linux.amd64 -trimpath -ldflags '-X main.Version='$VERSION hs.go
run: GOOS=linux GOARCH=amd64 go build -o ${{ github.event.repository.name }}.linux.amd64 -trimpath -ldflags '-X main.Version='$VERSION
- name: gzip
run: gzip -k hs.linux.amd64
run: gzip -k ${{ github.event.repository.name }}.linux.amd64
- name: list files
run: ls -l -a
- name: release notes
run: echo 'curl -sSL https://github.com/shoce/hs/releases/latest/download/hs.linux.amd64.gz | gunzip | put /bin/hs 755' >release.notes..text
run: echo 'curl -sSL https://github.com/shoce/${{ github.event.repository.name }}/releases/latest/download/${{ github.event.repository.name }}.linux.amd64.gz | gunzip | put /bin/${{ github.event.repository.name }} 755' >release.notes..text
- name: gh release
shell: bash
env:
GH_TOKEN: ${{ github.token }}
run: gh release create $VERSION hs.linux.amd64.gz --notes-file release.notes..text
run: gh release create $VERSION ${{ github.event.repository.name }}.linux.amd64.gz --notes-file release.notes..text

3 changes: 3 additions & 0 deletions hs.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ Host variable checked before every command execution: if it is empty then run lo
User variable stores user name if run via ssh.
Status variable tells exit status of the last command executed.
//
notes for possible future scripting language:
Reserved words:
ls, ll [path] / list directory of file by path
cd [dir] / change $dir
Expand All @@ -38,6 +40,7 @@ for x, y := / loop
! / negate $status
~ regexp string / match string against regexp
exit [status] / exit shell with status
//
*/

Expand Down

0 comments on commit b60a27d

Please sign in to comment.