feat: initial commit #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
on: | |
push: | |
branches: ["master"] | |
jobs: | |
build-pacman-repo: | |
runs-on: ubuntu-latest | |
container: | |
image: archlinux/base-devel | |
steps: | |
- name: Container Setup | |
run: | | |
pacman -Syu --disable-download-timeout --needed --noconfirm \ | |
archlinux-keyring | |
- name: Download Pacman Repo Builder | |
run: | | |
wget \ | |
https://github.com/pacman-repo-builder/pacman-repo-builder/releases/download/0.0.0-rc.65/build-pacman-repo-x86_64-unknown-linux-gnu \ | |
-O /usr/bin/build-pacman-repo | |
chmod +x /usr/bin/build-pacman-repo | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: repo | |
path: repo | |
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token | |
fetch-depth: 0 # otherwise, will fail to push refs to dest repo | |
- name: Build Pacman Repo | |
run: build-pacman-repo build | |
# - name: Build Pacman Repo | |
# uses: pacman-repo-builder/[email protected] | |
# with: | |
# command: build-pacman-repo build | |
- run: | | |
git add . | |
git diff ./repo | |
# - name: GitHub Commit & Push | |
# uses: actions-js/[email protected] | |
# with: | |
# author_email: ${{ secrets.GH_BOT_EMAIL }} | |
# author_name: ${{ secrets.GH_BOT_NAME }} | |
# branch: repo # commit to repo branch | |
# directory: repo # use the repo directory | |
# github_token: ${{ secrets.GH_BOT_TOKEN }} | |
# message: 'Update repo via ${{ github.sha }}' |