Skip to content

Commit

Permalink
added last update time and sleep function
Browse files Browse the repository at this point in the history
  • Loading branch information
ryma2fhir committed Oct 3, 2023
1 parent edb9eca commit d9e4743
Show file tree
Hide file tree
Showing 42 changed files with 266 additions and 15 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/ClinicalObservations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep $((RANDOM % 59))s #sleeps for a random number of minutes and seconds
run: sleep $((RANDOM %30))m $((RANDOM % 59))s #sleeps for a random number of minutes and seconds

- name: Set today
id: today
Expand All @@ -25,15 +25,6 @@ jobs:
id: branch-name
run: echo "BRANCH=$(echo ${{ steps.today.outputs.TODAY }} | tr -d '[:space:]' | tr -d ':')" >> $GITHUB_OUTPUT

- name: Update README
run: |
export NUMLINES=$(wc -l < README.md)
export NUMLINES=$(($NUMLINES-2))
head -$NUMLINES README.md > README1.md
echo "" >> README1.md
echo "Updated at: $(date)" >> README1.md
mv README1.md README.md
- name: Download and commit simplifier source code
run: |
cd ClinicalObservations
Expand All @@ -44,7 +35,7 @@ jobs:
unzip export.zip -x settings.style
rm -f export.zip
cd ..
export NUMLINES=$(wc -l < README.md)
export NUMLINES=$(wc -l < README.md) #Updates README file. Shows when last updated but also used to ensure changes made for the PR / merge steps below
export NUMLINES=$(($NUMLINES-2))
head -$NUMLINES README.md > README1.md
echo "" >> README1.md
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/CurrentFHIRIGTemplate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep $((RANDOM %30))m $((RANDOM % 59))s #sleeps for a random number of minutes and seconds

- name: Set today
id: today
run: echo "TODAY=$(date)" >> $GITHUB_OUTPUT
Expand All @@ -32,6 +35,12 @@ jobs:
unzip export.zip -x settings.style
mv export.zip ..
cd ..
export NUMLINES=$(wc -l < README.md) #Updates README file. Shows when last updated but also used to ensure changes made for the PR / merge steps below
export NUMLINES=$(($NUMLINES-2))
head -$NUMLINES README.md > README1.md
echo "" >> README1.md
echo "Updated at: $(date)" >> README1.md
mv README1.md README.md
- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep ${RANDOM:0:30}m ${RANDOM:0:59}s #sleeps for a random number of minutes and seconds
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/Diabetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep $((RANDOM %30))m $((RANDOM % 59))s #sleeps for a random number of minutes and seconds

- name: Set today
id: today
run: echo "TODAY=$(date)" >> $GITHUB_OUTPUT
Expand All @@ -32,6 +35,12 @@ jobs:
unzip export.zip -x settings.style
mv export.zip ..
cd ..
export NUMLINES=$(wc -l < README.md) #Updates README file. Shows when last updated but also used to ensure changes made for the PR / merge steps below
export NUMLINES=$(($NUMLINES-2))
head -$NUMLINES README.md > README1.md
echo "" >> README1.md
echo "Updated at: $(date)" >> README1.md
mv README1.md README.md
- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep ${RANDOM:0:30}m ${RANDOM:0:59}s #sleeps for a random number of minutes and seconds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep $((RANDOM %30))m $((RANDOM % 59))s #sleeps for a random number of minutes and seconds

- name: Set today
id: today
run: echo "TODAY=$(date)" >> $GITHUB_OUTPUT
Expand All @@ -32,6 +35,12 @@ jobs:
unzip export.zip -x settings.style
mv export.zip ..
cd ..
export NUMLINES=$(wc -l < README.md) #Updates README file. Shows when last updated but also used to ensure changes made for the PR / merge steps below
export NUMLINES=$(($NUMLINES-2))
head -$NUMLINES README.md > README1.md
echo "" >> README1.md
echo "Updated at: $(date)" >> README1.md
mv README1.md README.md
- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep ${RANDOM:0:30}m ${RANDOM:0:59}s #sleeps for a random number of minutes and seconds
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/Frameworks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep $((RANDOM %30))m $((RANDOM % 59))s #sleeps for a random number of minutes and seconds

- name: Set today
id: today
run: echo "TODAY=$(date)" >> $GITHUB_OUTPUT
Expand All @@ -32,6 +35,12 @@ jobs:
unzip export.zip -x settings.style
mv export.zip ..
cd ..
export NUMLINES=$(wc -l < README.md) #Updates README file. Shows when last updated but also used to ensure changes made for the PR / merge steps below
export NUMLINES=$(($NUMLINES-2))
head -$NUMLINES README.md > README1.md
echo "" >> README1.md
echo "Updated at: $(date)" >> README1.md
mv README1.md README.md
- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep ${RANDOM:0:30}m ${RANDOM:0:59}s #sleeps for a random number of minutes and seconds
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/GPConnectDirectCareAPIs-R4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep $((RANDOM %30))m $((RANDOM % 59))s #sleeps for a random number of minutes and seconds

- name: Set today
id: today
run: echo "TODAY=$(date)" >> $GITHUB_OUTPUT
Expand All @@ -32,6 +35,12 @@ jobs:
unzip export.zip -x settings.style
mv export.zip ..
cd ..
export NUMLINES=$(wc -l < README.md) #Updates README file. Shows when last updated but also used to ensure changes made for the PR / merge steps below
export NUMLINES=$(($NUMLINES-2))
head -$NUMLINES README.md > README1.md
echo "" >> README1.md
echo "Updated at: $(date)" >> README1.md
mv README1.md README.md
- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep ${RANDOM:0:30}m ${RANDOM:0:59}s #sleeps for a random number of minutes and seconds
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/GPConnectDirectCareAPIs-STU3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep $((RANDOM %30))m $((RANDOM % 59))s #sleeps for a random number of minutes and seconds

- name: Set today
id: today
run: echo "TODAY=$(date)" >> $GITHUB_OUTPUT
Expand All @@ -32,6 +35,12 @@ jobs:
unzip export.zip -x settings.style
mv export.zip ..
cd ..
export NUMLINES=$(wc -l < README.md) #Updates README file. Shows when last updated but also used to ensure changes made for the PR / merge steps below
export NUMLINES=$(($NUMLINES-2))
head -$NUMLINES README.md > README1.md
echo "" >> README1.md
echo "Updated at: $(date)" >> README1.md
mv README1.md README.md
- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep ${RANDOM:0:30}m ${RANDOM:0:59}s #sleeps for a random number of minutes and seconds
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/HL7FHIRUKCoreR4-Backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep $((RANDOM %30))m $((RANDOM % 59))s #sleeps for a random number of minutes and seconds

- name: Set today
id: today
run: echo "TODAY=$(date)" >> $GITHUB_OUTPUT
Expand All @@ -32,6 +35,12 @@ jobs:
unzip export.zip -x settings.style
mv export.zip ..
cd ..
export NUMLINES=$(wc -l < README.md) #Updates README file. Shows when last updated but also used to ensure changes made for the PR / merge steps below
export NUMLINES=$(($NUMLINES-2))
head -$NUMLINES README.md > README1.md
echo "" >> README1.md
echo "Updated at: $(date)" >> README1.md
mv README1.md README.md
- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep ${RANDOM:0:30}m ${RANDOM:0:59}s #sleeps for a random number of minutes and seconds
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/ImplementationGuideforDigitalMedicines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep $((RANDOM %30))m $((RANDOM % 59))s #sleeps for a random number of minutes and seconds

- name: Set today
id: today
run: echo "TODAY=$(date)" >> $GITHUB_OUTPUT
Expand All @@ -32,6 +35,12 @@ jobs:
unzip export.zip -x settings.style
mv export.zip ..
cd ..
export NUMLINES=$(wc -l < README.md) #Updates README file. Shows when last updated but also used to ensure changes made for the PR / merge steps below
export NUMLINES=$(($NUMLINES-2))
head -$NUMLINES README.md > README1.md
echo "" >> README1.md
echo "Updated at: $(date)" >> README1.md
mv README1.md README.md
- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep ${RANDOM:0:30}m ${RANDOM:0:59}s #sleeps for a random number of minutes and seconds
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/ImplementationGuideforDoseSyntax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep $((RANDOM %30))m $((RANDOM % 59))s #sleeps for a random number of minutes and seconds

- name: Set today
id: today
run: echo "TODAY=$(date)" >> $GITHUB_OUTPUT
Expand All @@ -32,6 +35,12 @@ jobs:
unzip export.zip -x settings.style
mv export.zip ..
cd ..
export NUMLINES=$(wc -l < README.md) #Updates README file. Shows when last updated but also used to ensure changes made for the PR / merge steps below
export NUMLINES=$(($NUMLINES-2))
head -$NUMLINES README.md > README1.md
echo "" >> README1.md
echo "Updated at: $(date)" >> README1.md
mv README1.md README.md
- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep ${RANDOM:0:30}m ${RANDOM:0:59}s #sleeps for a random number of minutes and seconds
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/NHSBookingandReferrals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep $((RANDOM %30))m $((RANDOM % 59))s #sleeps for a random number of minutes and seconds

- name: Set today
id: today
run: echo "TODAY=$(date)" >> $GITHUB_OUTPUT
Expand All @@ -32,6 +35,12 @@ jobs:
unzip export.zip -x settings.style
mv export.zip ..
cd ..
export NUMLINES=$(wc -l < README.md) #Updates README file. Shows when last updated but also used to ensure changes made for the PR / merge steps below
export NUMLINES=$(($NUMLINES-2))
head -$NUMLINES README.md > README1.md
echo "" >> README1.md
echo "Updated at: $(date)" >> README1.md
mv README1.md README.md
- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep ${RANDOM:0:30}m ${RANDOM:0:59}s #sleeps for a random number of minutes and seconds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep $((RANDOM %30))m $((RANDOM % 59))s #sleeps for a random number of minutes and seconds

- name: Set today
id: today
run: echo "TODAY=$(date)" >> $GITHUB_OUTPUT
Expand All @@ -32,6 +35,12 @@ jobs:
unzip export.zip -x settings.style
mv export.zip ..
cd ..
export NUMLINES=$(wc -l < README.md) #Updates README file. Shows when last updated but also used to ensure changes made for the PR / merge steps below
export NUMLINES=$(($NUMLINES-2))
head -$NUMLINES README.md > README1.md
echo "" >> README1.md
echo "Updated at: $(date)" >> README1.md
mv README1.md README.md
- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep ${RANDOM:0:30}m ${RANDOM:0:59}s #sleeps for a random number of minutes and seconds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep $((RANDOM %30))m $((RANDOM % 59))s #sleeps for a random number of minutes and seconds

- name: Set today
id: today
run: echo "TODAY=$(date)" >> $GITHUB_OUTPUT
Expand All @@ -32,6 +35,12 @@ jobs:
unzip export.zip -x settings.style
mv export.zip ..
cd ..
export NUMLINES=$(wc -l < README.md) #Updates README file. Shows when last updated but also used to ensure changes made for the PR / merge steps below
export NUMLINES=$(($NUMLINES-2))
head -$NUMLINES README.md > README1.md
echo "" >> README1.md
echo "Updated at: $(date)" >> README1.md
mv README1.md README.md
- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep ${RANDOM:0:30}m ${RANDOM:0:59}s #sleeps for a random number of minutes and seconds
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/NHSEnglandImplementationGuide .yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep $((RANDOM %30))m $((RANDOM % 59))s #sleeps for a random number of minutes and seconds

- name: Set today
id: today
run: echo "TODAY=$(date)" >> $GITHUB_OUTPUT
Expand All @@ -32,6 +35,12 @@ jobs:
unzip export.zip -x settings.style
mv export.zip ..
cd ..
export NUMLINES=$(wc -l < README.md) #Updates README file. Shows when last updated but also used to ensure changes made for the PR / merge steps below
export NUMLINES=$(($NUMLINES-2))
head -$NUMLINES README.md > README1.md
echo "" >> README1.md
echo "Updated at: $(date)" >> README1.md
mv README1.md README.md
- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep ${RANDOM:0:30}m ${RANDOM:0:59}s #sleeps for a random number of minutes and seconds
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/NHSEnglandProgrammeImplementationGuides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep $((RANDOM %30))m $((RANDOM % 59))s #sleeps for a random number of minutes and seconds

- name: Set today
id: today
run: echo "TODAY=$(date)" >> $GITHUB_OUTPUT
Expand All @@ -32,6 +35,12 @@ jobs:
unzip export.zip -x settings.style
mv export.zip ..
cd ..
export NUMLINES=$(wc -l < README.md) #Updates README file. Shows when last updated but also used to ensure changes made for the PR / merge steps below
export NUMLINES=$(($NUMLINES-2))
head -$NUMLINES README.md > README1.md
echo "" >> README1.md
echo "Updated at: $(date)" >> README1.md
mv README1.md README.md
- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep ${RANDOM:0:30}m ${RANDOM:0:59}s #sleeps for a random number of minutes and seconds
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/PDSAPI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep $((RANDOM %30))m $((RANDOM % 59))s #sleeps for a random number of minutes and seconds

- name: Set today
id: today
run: echo "TODAY=$(date)" >> $GITHUB_OUTPUT
Expand All @@ -32,6 +35,12 @@ jobs:
unzip export.zip -x settings.style
mv export.zip ..
cd ..
export NUMLINES=$(wc -l < README.md) #Updates README file. Shows when last updated but also used to ensure changes made for the PR / merge steps below
export NUMLINES=$(($NUMLINES-2))
head -$NUMLINES README.md > README1.md
echo "" >> README1.md
echo "Updated at: $(date)" >> README1.md
mv README1.md README.md
- name: Sleep random #Used to stop error due to multiple actions wanting PRs to be merged at the same time
run: sleep ${RANDOM:0:30}m ${RANDOM:0:59}s #sleeps for a random number of minutes and seconds
Expand Down
Loading

0 comments on commit d9e4743

Please sign in to comment.