Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
bb62d7b
Added initial draft of reference table
martin389 Dec 7, 2020
2f9ec0c
Small edit
martin389 Dec 7, 2020
1a56ed1
Merge branch 'main' into 1862-Add-Travis-CI-migration-table
martin389 Dec 10, 2020
667ec00
Merge branch 'main' into 1862-Add-Travis-CI-migration-table
Dec 21, 2020
de9e960
Merge branch 'main' into 1862-Add-Travis-CI-migration-table
Dec 31, 2020
88a7e94
Merge branch 'main' into 1862-Add-Travis-CI-migration-table
Jan 8, 2021
3f4982e
Merge branch 'main' into 1862-Add-Travis-CI-migration-table
Jan 12, 2021
2ea989d
Merge branch 'main' into 1862-Add-Travis-CI-migration-table
Jan 24, 2021
f071f00
Merge branch 'main' into 1862-Add-Travis-CI-migration-table
chiedo Feb 1, 2021
4499b3d
Merge branch 'main' into 1862-Add-Travis-CI-migration-table
Feb 2, 2021
6d64290
Merge branch 'main' into 1862-Add-Travis-CI-migration-table
Mar 16, 2021
ec752f4
Merge branch 'main' into 1862-Add-Travis-CI-migration-table
Mar 24, 2021
b10a287
Merge branch 'main' into 1862-Add-Travis-CI-migration-table
Mar 29, 2021
7542a21
Merge branch 'main' into 1862-Add-Travis-CI-migration-table
Apr 14, 2021
07d9c63
Merge branch 'main' into 1862-Add-Travis-CI-migration-table
May 3, 2021
898f94f
Merge branch 'main' into 1862-Add-Travis-CI-migration-table
JamesMGreene May 19, 2021
908d67f
Merge branch 'main' into 1862-Add-Travis-CI-migration-table
sarahs May 19, 2021
561368d
Fixing merge conflicts
Oct 13, 2021
089b0db
For merge conflict
Oct 13, 2021
8aeebcc
Merge branch 'main' into 1862-Add-Travis-CI-migration-table
Oct 13, 2021
83dd496
Update migrating-from-travis-ci-to-github-actions.md
Oct 13, 2021
adcf1bd
Merge branch 'main' into 1862-Add-Travis-CI-migration-table
Oct 13, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,24 @@ Travis CI lets you set environment variables and share them between stages. Simi

Travis CI and {% data variables.product.prodname_actions %} both include default environment variables that you can use in your YAML files. For {% data variables.product.prodname_actions %}, you can see these listed in "[Default environment variables](/actions/reference/environment-variables#default-environment-variables)."

To help you get started, this table maps some of the common Travis CI variables to {% data variables.product.prodname_actions %} variables with similar functionality:

| Travis CI | {% data variables.product.prodname_actions %}| {% data variables.product.prodname_actions %} description |
| ---------------------|------------ |------------ |
| `CI` | [`CI`](/actions/reference/environment-variables#default-environment-variables) | Allows your software to identify that it is running within a CI workflow. Always set to `true`.|
| `TRAVIS` | [`GITHUB_ACTIONS`](/actions/reference/environment-variables#default-environment-variables) | Use `GITHUB_ACTIONS` to identify whether tests are being run locally or by {% data variables.product.prodname_actions %}. Always set to `true` when {% data variables.product.prodname_actions %} is running the workflow.|
| `TRAVIS_BRANCH` | [`github.head_ref`](/actions/reference/context-and-expression-syntax-for-github-actions#github-context) or [`github.ref`](/actions/reference/context-and-expression-syntax-for-github-actions#github-context) | Use `github.ref` to identify the branch or tag ref that triggered the workflow run. For example, `refs/heads/<branch_name>` or `refs/tags/<tag_name>`. Alternatvely, `github.head_ref` is the source branch of the pull request in a workflow run; this property is only available when the workflow event trigger is a `pull_request`. |
| `TRAVIS_BUILD_DIR` | [`github.workspace`](/actions/reference/context-and-expression-syntax-for-github-actions#github-context) | Returns the default working directory for steps, and the default location of your repository when using the [`checkout`](https://github.com/actions/checkout) action. |
| `TRAVIS_BUILD_NUMBER` | [`GITHUB_RUN_NUMBER`](/actions/reference/environment-variables#default-environment-variables) | {% data reusables.github-actions.run_number_description %} |
| `TRAVIS_COMMIT` | [`GITHUB_SHA`](/actions/reference/environment-variables#default-environment-variables) | Returns the SHA of the commit that triggered the workflow. |
| `TRAVIS_EVENT_TYPE` | [`github.event_name`](/actions/reference/context-and-expression-syntax-for-github-actions#github-context) | The name of the webhook event that triggered the workflow. For example, `pull_request` or `push`. |
| `TRAVIS_JOB_ID` | [`github.job`](/actions/reference/context-and-expression-syntax-for-github-actions#github-context) | The [`job_id`](/actions/reference/workflow-syntax-for-github-actions#jobsjob_id) of the current job. |
| `TRAVIS_OS_NAME` | [`runner.os`](/actions/reference/context-and-expression-syntax-for-github-actions#runner-context) | The operating system of the runner executing the job. Possible values are `Linux`, `Windows`, or `macOS`. |
| `TRAVIS_PULL_REQUEST` | [`github.event.pull_request.number`](/developers/webhooks-and-events/webhook-events-and-payloads#pull_request) | The pull request number. This property is only available when the workflow event trigger is a `pull_request`. |
| `TRAVIS_REPO_SLUG` | [`GITHUB_REPOSITORY`](/actions/reference/environment-variables#default-environment-variables) | The owner and repository name. For example, `octocat/Hello-World`. |
| `TRAVIS_TEST_RESULT` | [`job.status`](/actions/reference/context-and-expression-syntax-for-github-actions#job-context) | The current status of the job. Possible values are `success`, `failure`, or `cancelled`. |
| `USER` | [`GITHUB_ACTOR`](/actions/reference/environment-variables#default-environment-variables) | The name of the person or app that initiated the workflow. For example, `octocat`. |

### Parallel job processing

Travis CI can use `stages` to run jobs in parallel. Similarly, {% data variables.product.prodname_actions %} runs `jobs` in parallel. For more information, see "[Creating dependent jobs](/actions/learn-github-actions/managing-complex-workflows#creating-dependent-jobs)."
Expand Down
2 changes: 1 addition & 1 deletion data/reusables/github-actions/run_number_description.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
A unique number for each run of a particular workflow in a repository. This number begins at 1 for the workflow's first run, and increments with each new run. This number does not change if you re-run the workflow run.
A unique number for each run of a particular workflow in a repository. This number begins at `1` for the workflow's first run, and increments with each new run. This number does not change if you re-run the workflow run.