run weekly and publish/deploy no matter what
All checks were successful
Check Latest Release / deploy (push) Successful in 4m17s
All checks were successful
Check Latest Release / deploy (push) Successful in 4m17s
This commit is contained in:
parent
4f5da712b3
commit
457b8e6239
@ -4,7 +4,7 @@ on:
|
||||
push:
|
||||
branches: '*'
|
||||
schedule:
|
||||
- cron: '*/10 * * * *'
|
||||
- cron: '0 0 * * 0' # Weekly: Every Sunday at midnight UTC
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
@ -38,26 +38,16 @@ jobs:
|
||||
latest_tag=$(echo $latest | jq -r .tag_name)
|
||||
published_at=$(echo $latest | jq -r .published_at)
|
||||
|
||||
current_time=$(date -u +%s)
|
||||
release_time=$(date -u -d "$published_at" +%s)
|
||||
time_diff=$((current_time - release_time))
|
||||
|
||||
echo "Latest tag: $latest_tag"
|
||||
echo "Published at: $published_at"
|
||||
echo "Time diff: $time_diff"
|
||||
|
||||
# Only proceed if release is recent
|
||||
# if [ $time_diff -le 600 ]; then
|
||||
echo "Recent release detected - proceeding with deployment"
|
||||
|
||||
# Setup dependencies
|
||||
echo "Proceeding with deployment"
|
||||
|
||||
# Setup dependencies
|
||||
sudo apt -y update && sudo apt -y install jq
|
||||
corepack enable
|
||||
npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/
|
||||
npm install -g @cerc-io/laconic-registry-cli
|
||||
|
||||
# Run deployment
|
||||
./deploy.sh ${{ env.TARGET_REPO }} $latest_tag
|
||||
# else
|
||||
# echo "No recent release - skipping deployment"
|
||||
# fi
|
||||
|
||||
# Run deployment
|
||||
./deploy.sh ${{ env.TARGET_REPO }} $latest_tag
|
||||
Loading…
Reference in New Issue
Block a user