-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: checkout branch before committing
- Loading branch information
1 parent
11a84da
commit ffec86d
Showing
1 changed file
with
7 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,23 +79,20 @@ jobs: | |
- name: Check out homebrew-tap | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
repository: momentohq/homebrew-tap | ||
token: ${{ secrets.PRIVATE_REPO_RELEASE_ACCESS }} | ||
|
||
- name: update homebrew formulae | ||
run: | | ||
git checkout -b formula/momento-cli/v${{ steps.semrel.outputs.version }} | ||
pushd Formula | ||
sed -i 's/sha256 ".*"/sha256 "${{ env.SHA }}"/g' momento-cli.rb | ||
sed -i 's/version ".*"/version "${{ steps.semrel.outputs.version }}"/g' momento-cli.rb | ||
sed -i 's/releases\/download\/.*\/archive-.*.tar.gz/releases\/download\/v${{ steps.semrel.outputs.version }}\/${{ env.ARCHIVE_FILE }}/g' momento-cli.rb | ||
popd | ||
- name: Push to homebrew-tap | ||
uses: cpina/[email protected] | ||
env: | ||
API_TOKEN_GITHUB: ${{ secrets.PRIVATE_REPO_RELEASE_ACCESS }} | ||
with: | ||
source-directory: '.' | ||
destination-github-username: 'momentohq' | ||
destination-repository-name: 'homebrew-tap' | ||
target-branch: formula/momento-cli/v${{ steps.semrel.outputs.version }} | ||
git config user.email "[email protected]" | ||
git config user.name "momentobot" | ||
git add . | ||
git commit -m "momento-cli ${{ steps.semrel.outputs.version }}" | ||
git push origin formula/momento-cli/v${{ steps.semrel.outputs.version }} |