fix url parsing, add path filter
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
parent
563c1df3bb
commit
e0442bd12f
12
.github/workflows/flake-update.yml
vendored
12
.github/workflows/flake-update.yml
vendored
@ -4,10 +4,13 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "00 12 * * *"
|
- cron: "00 12 * * *"
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- '.github/workflows'
|
||||||
jobs:
|
jobs:
|
||||||
update_lockfile:
|
update_lockfile:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
#if: github.ref == 'refs/heads/main' # ensure workflow_dispatch only runs on main
|
if: github.ref == 'refs/heads/main' # ensure workflow_dispatch only runs on main
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -22,13 +25,14 @@ jobs:
|
|||||||
[[ -z "$url" ]] && break
|
[[ -z "$url" ]] && break
|
||||||
final_url=$url
|
final_url=$url
|
||||||
done
|
done
|
||||||
echo "DETERMINATE_URL=$(echo $final_url)" >> $GITHUB_ENV
|
echo "DETERMINATE_URL=$(echo '$final_url')" | tee -a $GITHUB_ENV
|
||||||
|
|
||||||
|
|
||||||
determinate_version=$(echo $final_url | sed -E -e 's/.*(v[0-9.]+).*/\1/g')
|
determinate_version=$(echo $final_url | sed -E -e 's/.*(v[0-9.]+).*/\1/g')
|
||||||
echo "DETERMINATE_VESION=$(echo $determinate_version)" >> $GITHUB_ENV
|
echo "DETERMINATE_VESION=$(echo '$determinate_version')" | tee -a $GITHUB_ENV
|
||||||
|
|
||||||
binary_name=$(echo $final_url | sed -E -e 's/.*\/(.*)/\1/g')
|
binary_name=$(echo $final_url | sed -E -e 's/.*\/(.*)/\1/g')
|
||||||
echo "DETERMINATE_BINARY=$(echo $binary_name)" >> $GITHUB_ENV
|
echo "DETERMINATE_BINARY=$(echo '$binary_name')" | tee -a $GITHUB_ENV
|
||||||
|
|
||||||
- name: Download binary
|
- name: Download binary
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user