Compare commits
21 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
9b103f799e | ||
78e9584d90 | |||
50174096be | |||
|
383a836665 | ||
|
887a7505c0 | ||
86e4fa00c5 | |||
675173c9ba | |||
|
3c44cb2b44 | ||
|
00a25e3fe4 | ||
|
e47f0e2671 | ||
1d8bdbd587 | |||
|
4a653e5955 | ||
c9c653add4 | |||
db848c394f | |||
|
c04f95c533 | ||
b67282da9f | |||
3c1d60a01b | |||
c127f32583 | |||
8636d09b9b | |||
87a94cead7 | |||
34a1206422 |
@@ -1,16 +1,12 @@
|
|||||||
name: "Update Determinate Nix binary"
|
name: "Update Determinate Nix binary"
|
||||||
on:
|
on:
|
||||||
repository_dispatch:
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "00 12 * * *"
|
- cron: "00 0,6,12,18 * * *"
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- '.github/workflows/*'
|
|
||||||
jobs:
|
jobs:
|
||||||
download-binary:
|
download-binary:
|
||||||
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
|
||||||
@@ -35,7 +31,7 @@ jobs:
|
|||||||
- name: Download binary
|
- name: Download binary
|
||||||
id: binary-check
|
id: binary-check
|
||||||
run: |
|
run: |
|
||||||
wget --content-disposition -nv "$DETERMINATE_URL"
|
wget --content-disposition -nv "$DETERMINATE_URL" -O "$DETERMINATE_BINARY"
|
||||||
|
|
||||||
if git diff --quiet && git ls-files --error-unmatch "$DETERMINATE_BINARY"; then
|
if git diff --quiet && git ls-files --error-unmatch "$DETERMINATE_BINARY"; then
|
||||||
echo "DETERMINATE_BINARY_DIFF=0" | tee -a "$GITHUB_OUTPUT"
|
echo "DETERMINATE_BINARY_DIFF=0" | tee -a "$GITHUB_OUTPUT"
|
||||||
@@ -46,6 +42,7 @@ jobs:
|
|||||||
DETERMINATE_URL: ${{ env.DETERMINATE_URL }}
|
DETERMINATE_URL: ${{ env.DETERMINATE_URL }}
|
||||||
DERMINATE_BINARY: ${{ env.DETERMINATE_BINARY }}
|
DERMINATE_BINARY: ${{ env.DETERMINATE_BINARY }}
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
|
if: ${{ steps.binary-check.outputs.DETERMINATE_BINARY_DIFF != 0}}
|
||||||
with:
|
with:
|
||||||
name: determinate-binary
|
name: determinate-binary
|
||||||
path: ${{ env.DETERMINATE_BINARY }}
|
path: ${{ env.DETERMINATE_BINARY }}
|
||||||
@@ -59,7 +56,7 @@ jobs:
|
|||||||
commit-data:
|
commit-data:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [download-binary]
|
needs: [download-binary]
|
||||||
if: always() && ${{ needs.download-binary.outputs.DETERMINATE_BINARY_DIFF != 0 }}
|
if: ${{ needs.download-binary.outputs.DETERMINATE_BINARY_DIFF != 0 }}
|
||||||
steps:
|
steps:
|
||||||
- name: Reset outputs from previous job
|
- name: Reset outputs from previous job
|
||||||
run: |
|
run: |
|
||||||
@@ -95,6 +92,8 @@ jobs:
|
|||||||
git push
|
git push
|
||||||
env:
|
env:
|
||||||
DETERMINATE_VERSION: ${{ env.DETERMINATE_VERSION }}
|
DETERMINATE_VERSION: ${{ env.DETERMINATE_VERSION }}
|
||||||
|
- name: sleep 30
|
||||||
|
run: sleep 30
|
||||||
- name: Publish release
|
- name: Publish release
|
||||||
uses: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
env:
|
env:
|
BIN
nix-installer-x86_64-linux
(Stored with Git LFS)
BIN
nix-installer-x86_64-linux
(Stored with Git LFS)
Binary file not shown.
Reference in New Issue
Block a user