Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
02e68958a3 |
24
.github/workflows/download-latest.yml
vendored
24
.github/workflows/download-latest.yml
vendored
@@ -1,8 +1,12 @@
|
|||||||
name: "Update Determinate Nix binary"
|
name: "Update Determinate Nix binary"
|
||||||
on:
|
on:
|
||||||
|
repository_dispatch:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "00 0,6,12,18 * * *"
|
- cron: "00 0,6,12,18 * * *"
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- '.github/workflows/*'
|
||||||
jobs:
|
jobs:
|
||||||
download-binary:
|
download-binary:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -86,32 +90,12 @@ jobs:
|
|||||||
COMMIT_ID: ${{ env.COMMIT_ID }}
|
COMMIT_ID: ${{ env.COMMIT_ID }}
|
||||||
- name: Push new tag
|
- name: Push new tag
|
||||||
run: |
|
run: |
|
||||||
git fetch
|
|
||||||
git push origin "$DETERMINATE_VERSION" --force
|
git push origin "$DETERMINATE_VERSION" --force
|
||||||
git checkout main
|
git checkout main
|
||||||
git pull
|
|
||||||
git merge "$DETERMINATE_VERSION"
|
git merge "$DETERMINATE_VERSION"
|
||||||
git push
|
git push
|
||||||
env:
|
env:
|
||||||
DETERMINATE_VERSION: ${{ env.DETERMINATE_VERSION }}
|
DETERMINATE_VERSION: ${{ env.DETERMINATE_VERSION }}
|
||||||
outputs:
|
|
||||||
COMMIT_ID: ${{ env.COMMIT_ID }}
|
|
||||||
release-tag:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: [download-binary,commit-data]
|
|
||||||
if: ${{ needs.download-binary.outputs.DETERMINATE_BINARY_DIFF != 0 }}
|
|
||||||
steps:
|
|
||||||
- name: Reset outputs from previous job
|
|
||||||
run: |
|
|
||||||
echo "DETERMINATE_BINARY=${{ needs.download-binary.outputs.DETERMINATE_BINARY }}" | tee -a "$GITHUB_ENV"
|
|
||||||
echo "DETERMINATE_VERSION=${{ needs.download-binary.outputs.DETERMINATE_VERSION }}" | tee -a "$GITHUB_ENV"
|
|
||||||
echo "COMMIT_ID=${{ needs.commit-data.outputs.COMMIT_ID }}" | tee -a "$GITHUB_ENV"
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: fetch latest
|
|
||||||
run: |
|
|
||||||
git fetch
|
|
||||||
git checkout "$DETERMINATE_VERSION"
|
|
||||||
- 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