提交 e9a5ef89 编辑于 作者: Markus Reiter's avatar Markus Reiter
浏览文件

Re-enable `vendor-gems` for pull requests.

上级 42b755e1
name: Vendor Gems
on:
pull_request_target:
workflow_dispatch:
inputs:
pull_request:
......@@ -40,17 +41,25 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
- name: Vendor Gems
env:
GEM_NAME: ${{ steps.checkout.outputs.gem_name }}
run: |
if [[ '${{ steps.checkout.outputs.gem_name }}' == 'sorbet' ]]; then
set -u
if [[ "${GEM_NAME}" == 'sorbet' ]]; then
brew vendor-gems --update sorbet,sorbet-runtime
else
brew vendor-gems
fi
- name: Update RBI files
env:
GEM_NAME: ${{ steps.checkout.outputs.gem_name }}
run: |
set -u
if brew typecheck --update --fail-if-not-changed; then
if git add Library/Homebrew/sorbet; then
git commit -m "Update RBI files for ${{ steps.checkout.outputs.gem_name }}."
git commit -m "Update RBI files for ${GEM_NAME}."
fi
git reset --hard
......
支持 Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册