Skip to content

Commit

Permalink
Replace schedule with release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sergcpp committed Oct 18, 2024
1 parent ae57f6a commit 80ae67f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/actions/checkout/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@ runs:
cd Ray
git remote set-url origin $REPO_URL
git fetch --all
git checkout -f $GITHUB_REF_NAME
git reset --hard origin/$GITHUB_REF_NAME
echo "111"
if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
GITHUB_SHA=$(cat $GITHUB_EVENT_PATH | jq -r .pull_request.head.sha)
fi
git checkout -f $GITHUB_SHA
echo "222"
#git reset --hard origin/$GITHUB_REF_NAME
echo "333"
git clean -fdx
git fetch --tags
else
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Schedule
name: Release

on:
schedule:
- cron: '0 2 * * *' # Run every day at 1 o'clock
pull_request:
branches:
- 'releases/**'

jobs:
build-windows-x86_64-rel:
Expand Down

0 comments on commit 80ae67f

Please sign in to comment.