# Check out single file from GitHub at suite run time?

**URL:** <https://cylc.discourse.group/t/check-out-single-file-from-github-at-suite-run-time/119>\
**Category:** Cylc Support\
**Created:** [August 9, 2019, 4:13am UTC](https://cylc.discourse.group/t/check-out-single-file-from-github-at-suite-run-time/119 "2019-08-09T04:13:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonnyhtw](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/jonnyhtw/32/232_2.png) [@jonnyhtw](https://cylc.discourse.group/u/jonnyhtw)\
**Post date:** [August 9, 2019, 4:13am UTC](https://cylc.discourse.group/t/check-out-single-file-from-github-at-suite-run-time/119/1 "2019-08-09T04:13:06Z")

</div>

Hi there

I have a Python postprocessing script on GitHub which I’d like to check out into a suite at run time.

Is there a standard way of doing this?

Thanks a lot

Jonny

---

<div class="post-metadata">

**Author:** ![jonnyhtw](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/jonnyhtw/32/232_2.png) [@jonnyhtw](https://cylc.discourse.group/u/jonnyhtw)\
**Post date:** [August 9, 2019, 4:26am UTC](https://cylc.discourse.group/t/check-out-single-file-from-github-at-suite-run-time/119/2 "2019-08-09T04:26:30Z")

</div>

Got it.

You can get the absolute path from the `raw` feature on Github and then use `wget`…

```
wget https://raw.githubusercontent.com/...
```

---

<div class="post-metadata">

**Author:** ![oliver.sanders](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/oliver.sanders/32/110_2.png) [@oliver.sanders](https://cylc.discourse.group/u/oliver.sanders)\
**Post date:** [August 12, 2019, 9:22am UTC](https://cylc.discourse.group/t/check-out-single-file-from-github-at-suite-run-time/119/3 "2019-08-12T09:22:03Z")

</div>

FYI, the answer to this question would usually be the `git archive` command however extracting files from repositories is not supported by GitHub: [https://twitter.com/GitHubHelp/status/322818593748303873](https://twitter.com/GitHubHelp/status/322818593748303873)

---

<div class="post-metadata">

**Author:** ![TomekTrzeciak](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/tomektrzeciak/32/45_2.png) [@TomekTrzeciak](https://cylc.discourse.group/u/TomekTrzeciak)\
**Post date:** [August 12, 2019, 10:26am UTC](https://cylc.discourse.group/t/check-out-single-file-from-github-at-suite-run-time/119/4 "2019-08-12T10:26:02Z")

</div>

With rose you can (ab)use svn scheme for that (github supports svn interface):

```
[]
schemes=https://github.com/*=svn
[file:path/to/destination]
source=https://github.com/<githubuser>/<repo>/trunk/path/to/source
```
