-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uses older checkout version so I can also test dependabot.
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# fetch_latest_iso.yml | ||
# Author: D.A.Pelasgus | ||
|
||
name: Fetch Latest ISO Download Link | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
fetch-latest-iso: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
REPO: "${{ env.REPO || 'chimeraos/install-media' }}" | ||
OUTPUT_FILE: "${{ env.OUTPUT_FILE || 'output/latest_iso_url.txt' }}" | ||
MUSTACHE_FILE: "${{ env.MUSTACHE_FILE || 'src/download.mustache' }}" | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Make fetch_latest_iso.sh executable | ||
run: chmod +x fetch_latest_iso.sh | ||
|
||
- name: Run shell script to fetch ISO download link | ||
env: | ||
REPO: ${{ env.REPO }} | ||
OUTPUT_FILE: ${{ env.OUTPUT_FILE }} | ||
run: ./fetch_latest_iso.sh | ||
|
||
- name: Load download link into environment | ||
run: echo "DOWNLOAD_LINK=$(cat .iso_download.env | grep ISO_URL | cut -d '=' -f2)" >> $GITHUB_ENV | ||
|
||
- name: Insert download link into Mustache file | ||
run: sed -i "s|{{downloadLink}}|$DOWNLOAD_LINK|g" "${{ env.MUSTACHE_FILE }}" |