Skip to content

Commit

Permalink
syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
brtnfld committed Jan 6, 2025
1 parent 7a5138d commit 4898695
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/daily-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,28 @@ jobs:
uses: actions/[email protected]
with:
ref: master
repository: ${{ github.repository }}
path: repos/cgns.doc

-name: Checkout the CGNS source repository (master branch)
uses: actions/[email protected]
with:
repository: 'CGNS/CGNS'
ref: master
repository: 'CGNS/CGNS'
path: repos/cgns.src

- name: Get commit history for docs repository
id: get_commits_doc_repo
run: |
cd repos/cgns.doc
last_day=$(date -d 'yesterday' '+%Y-%m-%d')
first_commit_hash=$(git rev-list --max-count=1 --before="$last_day" HEAD)
echo "FIRST_COMMIT_HASH_DOC_REPO=$first_commit_hash" >> $GITHUB_OUTPUT
- name: Get commit history for source repository
id: get_commits_src_repo
run: |
cd CGNS/CGNS
cd repos/cgns.src
last_day=$(date -d 'yesterday' '+%Y-%m-%d')
first_commit_hash=$(git rev-list --max-count=1 --before="$last_day" HEAD)
echo "FIRST_COMMIT_HASH_SRC_REPO=$first_commit_hash" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 4898695

Please sign in to comment.