From ecc20a72ddf497ebada335892921ff893bb6f6c1 Mon Sep 17 00:00:00 2001 From: mpw Date: Mon, 2 Oct 2023 17:07:47 -0300 Subject: [PATCH] update wf --- .github/workflows/build.yml | 13 +------------ .github/workflows/tap.yml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/tap.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eed098b..86b89f4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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 }}' diff --git a/.github/workflows/tap.yml b/.github/workflows/tap.yml new file mode 100644 index 0000000..69a0d73 --- /dev/null +++ b/.github/workflows/tap.yml @@ -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/bump-homebrew-formula-action@v1.4 + 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 }}'