Skip to content

Commit

Permalink
🔧 Tried fixing Install moodle-to-vikwikiquiz step by appending `.gi…
Browse files Browse the repository at this point in the history
…t` to GitHub link
  • Loading branch information
gy-mate committed Jun 4, 2024
1 parent d671b65 commit faea8eb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,27 @@ jobs:
with:
python-version: 3.12.3

- name: Install Dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install homebrew-pypi-poet
- name: Checkout CLI Tool Repository
- name: Install moodle-to-vikwikiquiz
run: |
git clone https://github.com/gy-mate/moodle-to-vikwikiquiz
git clone https://github.com/gy-mate/moodle-to-vikwikiquiz.git
cd moodle-to-vikwikiquiz
pip install .
- name: Generate Homebrew Formula
- name: Generate Homebrew formula
run: |
poet -f moodle-to-vikwikiquiz > Formula/moodle_to_vikwikiquiz.rb
- name: Update Formula
- name: Update formula
run: |
sed -i 's|https://files.pythonhosted.org/packages/source/|https://github.com/gy-mate/homebrew-moodle-to-vikwikiquiz/archive/|' Formula/moodle_to_vikwikiquiz.rb
sed -i 's|sha256 ".*"|sha256 "$(curl -sL https://github.com/gy-mate/homebrew-moodle-to-vikwikiquiz/archive/v${GITHUB_REF#refs/tags/}.tar.gz | shasum -a 256 | awk "{print \$1}")"|' Formula/moodle_to_vikwikiquiz.rb
- name: Commit and Push
- name: Commit and push
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
Expand Down

0 comments on commit faea8eb

Please sign in to comment.