-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from 06chaynes/develop
v0.1.0
- Loading branch information
Showing
42 changed files
with
1,587 additions
and
270 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 |
---|---|---|
|
@@ -166,6 +166,40 @@ jobs: | |
- name: print tag | ||
run: echo "ok we're publishing!" | ||
|
||
publish-homebrew-formula: | ||
needs: [plan, should-publish] | ||
runs-on: "ubuntu-20.04" | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PLAN: ${{ needs.plan.outputs.val }} | ||
GITHUB_USER: "axo bot" | ||
GITHUB_EMAIL: "[email protected]" | ||
if: ${{ !fromJson(needs.plan.outputs.val).announcement_is_prerelease || fromJson(needs.plan.outputs.val).publish_prereleases }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: "06chaynes/homebrew-tfct" | ||
token: ${{ secrets.HOMEBREW_TAP_TOKEN }} | ||
# So we have access to the formula | ||
- name: Fetch local artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: artifacts | ||
path: Formula/ | ||
- name: Commit formula files | ||
run: | | ||
git config --global user.name "${GITHUB_USER}" | ||
git config --global user.email "${GITHUB_EMAIL}" | ||
for release in $(echo "$PLAN" | jq --compact-output '.releases[]'); do | ||
name=$(echo "$release" | jq .app_name --raw-output) | ||
version=$(echo "$release" | jq .app_version --raw-output) | ||
git add Formula/${name}.rb | ||
git commit -m "${name} ${version}" | ||
done | ||
git push | ||
# Create a Github Release with all the results once everything is done, | ||
publish-release: | ||
needs: [plan, should-publish] | ||
|
Oops, something went wrong.