Skip to content

Commit

Permalink
syntax2
Browse files Browse the repository at this point in the history
  • Loading branch information
brtnfld committed Jan 6, 2025
1 parent 4898695 commit c7c2f47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/daily-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,35 @@ on:

jobs:
check_changes_build:
name: Check for updates to documentation or source code.
name: Check for updates to documentation or source code
runs-on: ubuntu-latest
steps:
- name: Checkout CGNS documentation repository (master branch)
uses: actions/[email protected]
with:
ref: master
repository: ${{ github.repository }}
path: repos/cgns.doc
path: repos/cgns_doc

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

- name: Get commit history for docs repository
id: get_commits_doc_repo
run: |
cd repos/cgns.doc
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 repos/cgns.src
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 c7c2f47

Please sign in to comment.