Skip to content

Commit

Permalink
ci: update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kjxbyz committed Jul 3, 2024
1 parent 348b1d7 commit 42ae7bf
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,38 +127,3 @@ jobs:
} else {
Write-Output "The specified certificate was not found."
}
update_cask:
runs-on: ubuntu-latest
needs: publish

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write

steps:
- uses: actions/checkout@v4
with:
repository: cyf/homebrew-cyf
token: ${{ secrets.CYF_HOMEBREW_FAFOREVER }}

- name: Update Version
run: |
VERSION=$(echo "$TAG_NAME" | sed 's/^v//')
# macOS
# sed -i "" "s/version \"[^\"]*\"/version \"$VERSION\"/" Casks/faforever.rb
sed -i "s/version \"[^\"]*\"/version \"$VERSION\"/" Casks/faforever.rb
env:
TAG_NAME: ${{github.ref_name}}

- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: ${{github.ref_name}}"
commit_options: '--no-verify --signoff'
commit_user_name: kjxbyz
commit_user_email: kjxbyz888@outlook.com
commit_author: kjxbyz <kjxbyz888@outlook.com>
add_options: '-u'
push_options: '--force'

0 comments on commit 42ae7bf

Please sign in to comment.