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 874dba8 commit da760b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/actions/checkout/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ runs:
using: 'composite'
steps:
- run: |
REPO_URL="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY"
REPO_URL="${{ env.GITHUB_SERVER_URL }}/${{ env.GITHUB_REPOSITORY }}"
cd ../..
mkdir -p builds
cd builds
Expand All @@ -12,13 +12,13 @@ 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
git checkout -f ${{ env.GITHUB_SHA }}
git reset --hard origin/${{ env.GITHUB_REF_NAME }}
git clean -fdx
git fetch --tags
else
echo "Clone new repository"
git clone $REPO_URL -b $GITHUB_REF_NAME
git clone $REPO_URL -b ${{ env.GITHUB_REF_NAME }}
cd Ray
git fetch --tags
fi
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 da760b9

Please sign in to comment.