Materialgram RPM Builder #42
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
name: Materialgram RPM Builder | |
on: | |
workflow_run: | |
workflows: ["Update Version"] | |
types: | |
- completed | |
permissions: | |
contents: write | |
jobs: | |
update: | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
runs-on: ubuntu-latest | |
container: | |
image: fedora:41 | |
options: --volume ${{ github.workspace }}:/workspace | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Install dependencies | |
run: | | |
dnf install -y git rpm-build createrepo curl jq tar | |
- name: Prepare and Build RPM | |
run: | | |
git clone https://${{ secrets.PAT }}@github.com/burhancodes/materialgram-repo.git repo | |
bash build.sh |