wf test
This commit is contained in:
@@ -2,19 +2,19 @@ name: Update Nix Packages with nix-update
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 2 * * *'
|
- cron: "0 2 * * *"
|
||||||
workflow_dispatch: # Allow manual triggering
|
workflow_dispatch: # Allow manual triggering
|
||||||
inputs:
|
inputs:
|
||||||
package:
|
package:
|
||||||
description: 'Specific package to update (optional)'
|
description: "Specific package to update (optional)"
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GIT_AUTHOR_NAME: 'nix-update bot'
|
GIT_AUTHOR_NAME: "nix-update bot"
|
||||||
GIT_AUTHOR_EMAIL: 'bot@m3ta.dev'
|
GIT_AUTHOR_EMAIL: "bot@m3ta.dev"
|
||||||
GIT_COMMITTER_NAME: 'nix-update bot'
|
GIT_COMMITTER_NAME: "nix-update bot"
|
||||||
GIT_COMMITTER_EMAIL: 'bot@m3ta.dev'
|
GIT_COMMITTER_EMAIL: "bot@m3ta.dev"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
nix-update:
|
nix-update:
|
||||||
@@ -25,19 +25,19 @@ jobs:
|
|||||||
# Disable terminal prompts for all git operations
|
# Disable terminal prompts for all git operations
|
||||||
export GIT_TERMINAL_PROMPT=0
|
export GIT_TERMINAL_PROMPT=0
|
||||||
export GIT_ASKPASS="/bin/echo"
|
export GIT_ASKPASS="/bin/echo"
|
||||||
|
|
||||||
# Clone repository with token authentication
|
# Clone repository with token authentication
|
||||||
git clone --depth 0 --no-single-branch \
|
git clone --no-single-branch \
|
||||||
"https://${{ secrets.NIX_UPDATE_TOKEN }}@code.m3ta.dev/m3tam3re/nixpkgs.git" \
|
"https://${{ secrets.NIX_UPDATE_TOKEN }}@code.m3ta.dev/m3tam3re/nixpkgs.git" \
|
||||||
/workspace/m3tam3re/nixpkgs
|
/workspace/m3tam3re/nixpkgs
|
||||||
|
|
||||||
cd /workspace/m3tam3re/nixpkgs
|
cd /workspace/m3tam3re/nixpkgs
|
||||||
|
|
||||||
# Configure git author/committer
|
# Configure git author/committer
|
||||||
git config --global user.name "${{ env.GIT_AUTHOR_NAME }}"
|
git config --global user.name "${{ env.GIT_AUTHOR_NAME }}"
|
||||||
git config --global user.email "${{ env.GIT_AUTHOR_EMAIL }}"
|
git config --global user.email "${{ env.GIT_AUTHOR_EMAIL }}"
|
||||||
git config --global init.defaultBranch master
|
git config --global init.defaultBranch master
|
||||||
|
|
||||||
# Verify checkout
|
# Verify checkout
|
||||||
git status
|
git status
|
||||||
git log --oneline -5
|
git log --oneline -5
|
||||||
@@ -57,7 +57,6 @@ jobs:
|
|||||||
echo "has_flake=false" >> $GITHUB_OUTPUT
|
echo "has_flake=false" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
- name: Update packages
|
- name: Update packages
|
||||||
id: update
|
id: update
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user