add lfs tracking, add job dependency
This commit is contained in:
parent
285f71e8a3
commit
ea1c07ffc4
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
nix-installer-x86_64-linux filter=lfs diff=lfs merge=lfs -text
|
13
.github/workflows/flake-update.yml
vendored
13
.github/workflows/flake-update.yml
vendored
@ -33,35 +33,35 @@ jobs:
|
|||||||
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)" | tee -a $GITHUB_ENV
|
echo "DETERMINATE_BINARY=$(echo $binary_name)" | tee -a $GITHUB_ENV
|
||||||
- name: Download binary
|
- name: Download binary
|
||||||
id: download-binary
|
|
||||||
run: |
|
run: |
|
||||||
wget --content-disposition -nv "$DETERMINATE_URL"
|
wget --content-disposition -nv "$DETERMINATE_URL"
|
||||||
|
|
||||||
git diff --quiet
|
git diff --quiet
|
||||||
echo "DETERMINATE_BINARY_DIFF=$?" | tee -a "$GITHUB_OUTPUTS"
|
echo "DETERMINATE_BINARY_DIFF=$?" | tee -a "$GITHUB_OUTPUT"
|
||||||
env:
|
env:
|
||||||
DETERMINATE_URL: ${{ env.DETERMINATE_URL }}
|
DETERMINATE_URL: ${{ env.DETERMINATE_URL }}
|
||||||
|
commit-data:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: download-binary
|
||||||
|
if: download-binary.outputs.DETERMINATE_BINARY_DIFF != 0
|
||||||
|
steps:
|
||||||
- name: Git config
|
- name: Git config
|
||||||
if: steps.download-binary.outputs.DETERMINATE_BINARY_DIFF != 0
|
|
||||||
run: |
|
run: |
|
||||||
git config user.name github-actions
|
git config user.name github-actions
|
||||||
git config user.email github-actions@github.com
|
git config user.email github-actions@github.com
|
||||||
- name: Commit binary
|
- name: Commit binary
|
||||||
if: steps.download-binary.outputs.DETERMINATE_BINARY_DIFF != 0
|
|
||||||
run: |
|
run: |
|
||||||
git add .
|
git add .
|
||||||
git commit -m "automated download workflow"
|
git commit -m "automated download workflow"
|
||||||
commit_id=$(git rev-parse HEAD)
|
commit_id=$(git rev-parse HEAD)
|
||||||
echo "COMMIT_ID=$(echo $commit_id)" >> $GITHUB_ENV
|
echo "COMMIT_ID=$(echo $commit_id)" >> $GITHUB_ENV
|
||||||
- name: Tag new target
|
- name: Tag new target
|
||||||
if: steps.download-binary.outputs.DETERMINATE_BINARY_DIFF != 0
|
|
||||||
run: |
|
run: |
|
||||||
git tag -f "$DETERMINATE_VERSION" "$COMMIT_ID"
|
git tag -f "$DETERMINATE_VERSION" "$COMMIT_ID"
|
||||||
env:
|
env:
|
||||||
DETERMINATE_VERSION: ${{ env.DETERMINATE_VERSION }}
|
DETERMINATE_VERSION: ${{ env.DETERMINATE_VERSION }}
|
||||||
COMMIT_ID: ${{ env.COMMIT_ID }}
|
COMMIT_ID: ${{ env.COMMIT_ID }}
|
||||||
- name: Push new tag
|
- name: Push new tag
|
||||||
if: steps.download-binary.outputs.DETERMINATE_BINARY_DIFF != 0
|
|
||||||
run: |
|
run: |
|
||||||
git push origin "$DETERMINATE_VERSION" --force
|
git push origin "$DETERMINATE_VERSION" --force
|
||||||
git checkout main
|
git checkout main
|
||||||
@ -70,7 +70,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
DETERMINATE_VERSION: ${{ env.DETERMINATE_VERSION }}
|
DETERMINATE_VERSION: ${{ env.DETERMINATE_VERSION }}
|
||||||
- name: Publish release
|
- name: Publish release
|
||||||
if: steps.download-binary.outputs.DETERMINATE_BINARY_DIFF != 0
|
|
||||||
uses: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
env:
|
env:
|
||||||
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
||||||
|
Loading…
x
Reference in New Issue
Block a user