From f81af865c4f037ccd8a81797fe0e5a76805bb3c7 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 4 Jul 2021 17:20:20 +0100 Subject: [PATCH] feat: add meta update workflow This will update metadata json files in the `meta` branch, which are used for rendering badges for each cask with shields.io. --- .github/workflows/update-meta.yml | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/update-meta.yml diff --git a/.github/workflows/update-meta.yml b/.github/workflows/update-meta.yml new file mode 100644 index 00000000..7cb1701f --- /dev/null +++ b/.github/workflows/update-meta.yml @@ -0,0 +1,39 @@ +--- +name: Update Meta +on: [push] + +jobs: + update-meta: + runs-on: macos-10.15 + if: github.ref == 'refs/heads/main' + steps: + - name: Checkout tap repository main branch + uses: actions/checkout@v2 + with: + path: tap + - name: Symlink homebrew tap + run: | + mkdir -p "$(brew --repo)/Library/Taps/jimeh" + ln -s "${{ github.workspace }}/tap" \ + "$(brew --repo)/Library/Taps/jimeh/homebrew-emacs-builds" + - name: Checkout tap repository meta branch + uses: actions/checkout@v2 + with: + ref: meta + path: meta + - name: Install meta dependencies + run: brew bundle + working-directory: meta + - name: Update meta files + run: make update + working-directory: meta + - uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: "chore(meta): update meta files" + repository: meta + branch: meta + commit_user_name: github-actions[bot] + commit_user_email: github-actions[bot]@users.noreply.github.com + commit_author: >- + github-actions[bot] + skip_dirty_check: false