You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+84-8Lines changed: 84 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -80,8 +80,23 @@ The chmod command just makes the .sh files executable.
80
80
81
81
• Both files can be found on the tutorial’s repository. Here are the links to [setup.sh](https://github.com/opencobra/COBRA.tutorials/blob/master/setup.sh) and [build.sh](https://github.com/opencobra/COBRA.tutorials/blob/master/build.sh)
Here is the code to run the setup.sh and build.sh. We loop through all the .mlx files that were pushed. If it is the first file we are looking at we also run setup.sh to create the folder locations in the cobratoolbox – ghpages branch repository. Then afterwards build,sh is ran to convert the file to html and push to the created folder location
87
102
@@ -101,31 +116,92 @@ In a similar fashion to the first step a .yml file is in the .github/workflows f
Here the second step is to checkout the repository and find any changes that were made. Also note that we are now running on ‘ubuntu-latest’ and not ‘self-hosted’ as there is no need to use King for this part.
if [[ "$commit_msg" == "Sync files from source repo" ]]; then
150
+
echo "::set-output name=run_job::true"
151
+
else
152
+
echo "::set-output name=run_job::false"
153
+
fi
154
+
```
114
155
115
156
116
157
In the tutorials repo we push to the gh-pages branch with the particular comment: ‘Sync files from source repo’. This helps distinguish between slight edits made to pages on the website and tutorial pushes from the tutorials repo. Here this piece of code checks this.
changed_files=$(git diff --name-only HEAD~1 HEAD | grep '\.html')
177
+
echo "::set-output name=file::$changed_files"
178
+
```
120
179
121
180
Here are some basic steps such as 1. Set up python got github actions 2. Install Python dependencies needed 3. Get the html files that were pushed to the repository.
0 commit comments