Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# dependabot.yml
# Author: D.A.Pelasgus

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
38 changes: 38 additions & 0 deletions .github/workflows/fetch_contributors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# fetch_contributors.yml
# Author: D.A.Pelasgus

name: Update Contributors List

on:
push:
branches:
- master
workflow_dispatch:

jobs:
update-contributors:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Make fetch_contributors.sh executable
run: chmod +x scripts/fetch_contributors.sh

- name: Run script to fetch and update contributors
env:
ORG: "chimeraos"
HTML_FILE: "src/index.html"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./scripts/fetch_contributors.sh

- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add src/index.html
git commit -m "Update contributors list"
git push
46 changes: 46 additions & 0 deletions .github/workflows/fetch_latest_iso.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# fetch_latest_iso.yml
# Author: D.A. Pelasgus

name: Fetch Latest ISO Download Link

on:
push:
branches:
- master
workflow_dispatch:

jobs:
fetch-latest-iso:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Make fetch_latest_iso.sh executable
run: chmod +x scripts/fetch_latest_iso.sh

- name: Run shell script to fetch ISO download link
env:
REPO: "chimeraos/install-media"
OUTPUT_FILE: "output/latest_iso_url.txt"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./scripts/fetch_latest_iso.sh

- name: Load download link into environment
run: |
if [ -f ".iso_download.env" ]; then
echo "DOWNLOAD_LINK=$(grep 'ISO_URL' .iso_download.env | cut -d '=' -f2)" >> $GITHUB_ENV
else
echo "Error: .iso_download.env file not found."
exit 1
fi

- name: Insert download link into Mustache file
env:
DOWNLOAD_LINK: ${{ env.DOWNLOAD_LINK }}
MUSTACHE_FILE: "src/download.mustache"
run: sed -i "s|{{downloadLink}}|$DOWNLOAD_LINK|g" "$MUSTACHE_FILE"

- name: Verify updated Mustache file
run: cat src/download.mustache
Loading