Skip to content

Commit

Permalink
update wf
Browse files Browse the repository at this point in the history
  • Loading branch information
mpwsh committed Oct 2, 2023
1 parent 09add0f commit ecc20a7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
with:
version: '${{ steps.get_previous_version.outputs.PREVIOUS_VERSION || ''0.0.0'' }}'
- run: mkdir -p ./version
- run: echo "$VERSION" >./version/version
- run: echo "$VERSION" > ./version/version
env:
VERSION: ${{ steps.semvers.outputs.v_patch }}
- run: echo "$VERSION" > ./version/version
Expand Down Expand Up @@ -174,17 +174,6 @@ jobs:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: install
args: 'toml-cli'
- shell: bash
env:
VERSION: '${{ steps.get_version.outputs.VERSION }}'
run: |
TEMP_FILE="$(mktemp)"
toml set Cargo.toml package.version "${VERSION:1}" > "$TEMP_FILE"
mv "$TEMP_FILE" Cargo.toml
- uses: actions-rs/cargo@v1
env:
VERSION: '${{ steps.get_version.outputs.VERSION }}'
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/tap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on:
push:
tags:
- '*'
jobs:
check:
runs-on: ubuntu-latest
steps:
- id: get_repository_name
run: echo ::set-output name=REPOSITORY_NAME::$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}' | sed -e "s/:refs//")
shell: bash
- uses: mislav/[email protected]
if: '!contains(github.ref, ''-'')'
with:
formula-name: '${{ steps.get_repository_name.outputs.REPOSITORY_NAME }}'
homebrew-tap: PurpleBooth/homebrew-repo
env:
COMMITTER_TOKEN: '${{ secrets.COMMITTER_TOKEN }}'

0 comments on commit ecc20a7

Please sign in to comment.