Skip to content

Commit ac56dcb

Browse files
committed
ci
1 parent aba0476 commit ac56dcb

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/python-package.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,20 @@ jobs:
9898
# fix pandoc version to 3.1.6 until https://github.com/jupyter/nbconvert/issues/2164 fixed
9999
run: |
100100
brew update
101-
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/74b7e35f40e3347bc0719622a1fd59fd4a5352a9/Formula/pandoc.rb
101+
# Please define variables
102+
export packageName=pandoc
103+
export packageVersion=3.1.6.1
104+
# Create a new tab
105+
brew tap-new local/$packageName
106+
107+
# Extract into local tap
108+
brew extract --version=$packageVersion $packageName local/$packageName
109+
110+
# Verify packages is present
111+
brew search $packageName@
112+
113+
# Run brew install@version as usual
114+
brew install local/$packageName/$packageName@$packageVersion
102115
ln -s -f $(which python3) /usr/local/bin/python
103116
ln -s -f $(which pip3) /usr/local/bin/pip
104117

0 commit comments

Comments
 (0)