1
0
mirror of synced 2025-12-30 12:02:01 -05:00
Commit Graph

182 Commits

Author SHA1 Message Date
hubwriter
2e5ea5cc83 Improve Actions docs on environment variables (#24246)
* Begin work on PR

* Modify intro section

* Add details of contexts

* More details added

* Fix broken link

* Fix liquid error

* More WiP

* More WiP changes

* add env var examples

* Finish initial draft of env vars article update

* Fix versioning in table

* Add remaining examples

* Another WiP tweak

* More WiP changes

* More WiP changes

* More WiP changes

* More WiP changes

* More WiP changes

* Add <nobr> to things

* Finish updating other articles

* test line breaks

* Remove previous test

* Update links to files now moved

* Rebplace nobr with spans

* Another test

* Remove the previous test

* Remove misleading note.

This note box was added by an OS contributor
https://github.com/github/docs/pull/9236/files
but is, at best, misleading.

Environment variables *can* be referenced directly within
a run command as  and do *not* have to be
referenced via the SHELL=/usr/local/bin/bash
ITERM_PROFILE=Default
COLORTERM=truecolor
XPC_FLAGS=0x0
NVM_INC=/Users/alistair/.nvm/versions/node/v12.8.0/include/node
TERM_PROGRAM_VERSION=3.4.14
GIT_PS1_SHOWUPSTREAM=verbose git
__CFBundleIdentifier=com.googlecode.iterm2
SSH_AUTH_SOCK=/var/folders/bh/jrv856xx31zfmhc60chqvxqw0000gn/T//ssh-7EnftFpl4aXq/agent.77591
GIT_PS1_SHOWDIRTYSTATE=1
TERM_SESSION_ID=w2t0p0:9F68FC35-8DB9-4051-A7C6-5E61A2C37694
HOMEBREW_AUTO_UPDATE_SECS=3600
RBENV_SHELL=bash
SSH_AGENT_PID=77592
ITERM_PREV_PS1=\[]133;D;$?]133;A\]\[\033[1;36m\]\w\[\033[0m\] \[\033[1;32m\]$(__git_ps1)\[\033[0m\]
\$ \[]133;B\]
GPG_TTY=/dev/ttys002
EDITOR=vi
ITERM_ORIG_PS1=\[\033[1;36m\]\w\[\033[0m\] \[\033[1;32m\]$(__git_ps1)\[\033[0m\]
\$
PWD=/Users/alistair/git-repos/docs-internal
LOGNAME=alistair
COMMAND_MODE=unix2003
NODENV_SHELL=bash
ITERM_SESSION_ID=w2t0p0:9F68FC35-8DB9-4051-A7C6-5E61A2C37694
HOME=/Users/alistair
LANG=en_GB.UTF-8
LS_COLORS=di=1;0;42:fi=0:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35;40:*.rpm=90
TMPDIR=/var/folders/bh/jrv856xx31zfmhc60chqvxqw0000gn/T/
LC_TERMINAL=iTerm2
NVM_DIR=/Users/alistair/.nvm
TOKEN=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
TERM=xterm-256color
USER=alistair
COLORFGBG=15;0
LC_TERMINAL_VERSION=3.4.14
SHLVL=0
NVM_CD_FLAGS=
XPC_SERVICE_NAME=0
PS1=\[\033[1;36m\]\w\[\033[0m\] \[\033[1;32m\]$(__git_ps1)\[\033[0m\]
\$
PATH=/Users/alistair/git-repos/awssume/bin:/Users/alistair/git-repos/awssume/bin:/Users/alistair/.gem/ruby/2.7.0/bin:/Users/alistair/.rbenv/shims:/Users/alistair/.nodenv/shims:/Users/alistair/.nvm/versions/node/v12.8.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/alistair/git-repos/github/bin:/Users/alistair/programming:/Applications/VMware Fusion.app/Contents/Public:/usr/local/MacGPG2/bin:/Library/Apple/usr/bin:/Users/alistair/.node/bin:/Users/alistair/.nodenv/versions/14.13.0/
NVM_BIN=/Users/alistair/.nvm/versions/node/v12.8.0/bin
OLDPWD=/Users/alistair/git-repos/docs-internal/lib
__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x2
TERM_PROGRAM=iTerm.app
_=/usr/bin/env context.

Confirmed by an answer to a question in the c2c-actions
channel https://github.slack.com/archives/CDJAC532T/p1642154921002900

* Update content/actions/learn-github-actions/environment-variables.md

Co-authored-by: Laura Coursen <lecoursen@github.com>

* Update content/actions/learn-github-actions/environment-variables.md

Co-authored-by: Laura Coursen <lecoursen@github.com>

* Update content/actions/learn-github-actions/environment-variables.md

Co-authored-by: Laura Coursen <lecoursen@github.com>

* Update content/actions/learn-github-actions/environment-variables.md

Co-authored-by: Laura Coursen <lecoursen@github.com>

* Update content/actions/learn-github-actions/environment-variables.md

Co-authored-by: Laura Coursen <lecoursen@github.com>

* Update content/actions/using-workflows/workflow-commands-for-github-actions.md

Co-authored-by: Laura Coursen <lecoursen@github.com>

* Update content/actions/learn-github-actions/environment-variables.md

Co-authored-by: Laura Coursen <lecoursen@github.com>

* Update content/actions/learn-github-actions/environment-variables.md

Co-authored-by: Laura Coursen <lecoursen@github.com>

* Update content/actions/learn-github-actions/environment-variables.md

Co-authored-by: Laura Coursen <lecoursen@github.com>

* Update content/actions/learn-github-actions/environment-variables.md

Co-authored-by: Laura Coursen <lecoursen@github.com>

* Make remaining review comment changes

Co-authored-by: Laura Coursen <lecoursen@github.com>
2022-01-24 10:55:51 +00:00
Laura Coursen
86656c8e94 Share actions with your enterprise 2022-01-21 11:42:04 +00:00
Sebastián Camargo
02d162ccc3 Fixed broken link on documentation (#14250)
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
2022-01-18 21:40:19 +00:00
Lucas Costi
07095e96cc Actions context article revamp (#23628) 2022-01-18 00:53:42 +00:00
Martin Lopes
2a58d29f33 Add new categories: "workflows" and "jobs". Add new articles for jobs. (#22898) 2022-01-17 16:45:57 +10:00
Sarah Edwards
abb2c01e43 Update events that trigger workflows docs (#23954)
Co-authored-by: Jacob Wallraff <thyeggman@github.com>
Co-authored-by: hubwriter <hubwriter@github.com>
2022-01-13 15:12:16 -08:00
Ramya Parimi
215d8dc537 Merge branch 'main' into patch-3 2022-01-13 07:03:31 -06:00
Christopher Schleiden
7cbcc0e8c4 Correctly show Actions typed inputs example
This moves the {% raw %} conditional so that the `ifversion` conditional is correctly evaluated.
2022-01-11 14:33:43 -08:00
Justin Campbell
d798e89088 Update link text for next page 2022-01-06 14:55:51 -05:00
Ramya Parimi
59bc345487 Merge branch 'main' into ske-clarify-runs-on 2022-01-05 11:47:25 -06:00
Josh Soref
62587614ae Remove stray space from link 2022-01-04 23:32:04 -05:00
Ferenc Hammerl
1bd90a432c Add documentation for conditional composite steps (runs.steps[*].if) (#12378) 2022-01-04 15:38:19 +00:00
Sarah Edwards
fd4441b4de add backticks
Co-authored-by: Steve Guntrip <12534592+stevecat@users.noreply.github.com>
2022-01-04 07:28:24 -08:00
Arthur Milchior
a8d29d22a3 Correct "return" in expressions 2022-01-01 10:21:26 +01:00
Sarah Edwards
4e0f66b76f clarify runs-on array 2021-12-29 11:21:36 -08:00
hubwriter
0651660f33 Change "workflow templates" to "starter workflows" (#23823)
Co-authored-by: skedwards88 <skedwards88@github.com>
2021-12-21 18:15:54 +00:00
Sarah Edwards
9978441019 [12-17-2021] Update starter template UI docs (#22966)
Co-authored-by: Octomerger Bot <63058869+Octomerger@users.noreply.github.com>
Co-authored-by: jmarlena <6732600+jmarlena@users.noreply.github.com>
Co-authored-by: Melanie Yarbrough <11952755+myarb@users.noreply.github.com>
2021-12-17 08:35:23 -08:00
ajaykn
711de2bc18 Enable concurrency for reusable workflows (#23739)
Co-authored-by: hubwriter <hubwriter@github.com>
2021-12-17 09:08:15 +00:00
Peter Bengtsson
97d8746422 cleaning up trailing slash redirects (part 9) (#23781) 2021-12-17 08:27:06 +00:00
Rachael Sewell
daafb8cb9d break up large rest pages (#23652) 2021-12-14 20:39:25 +00:00
Feanil Patel
51d8e22040 Update small grammer error in understanding-github-actions.md 2021-12-10 10:30:41 -05:00
Ramya Parimi
d8e5e72ce6 Merge branch 'main' into patch-2 2021-12-08 13:58:43 -06:00
Matt Pollard
b3e1ff4e89 Update documentation for GitHub AE's December 2021 release (#23405) 2021-12-07 10:36:37 +01:00
Octomerger Bot
269794d3e3 Merge branch 'main' into repo-sync 2021-12-03 13:51:02 -06:00
Tobi
471049334a Change iconName to Optional (#12090) 2021-12-03 19:19:32 +00:00
Octomerger Bot
cd1bc4256e Merge branch 'main' into repo-sync 2021-12-02 19:41:05 -06:00
Lucas Costi
5933365fb8 Clarify wording for runs-on syntax (#12504)
Co-authored-by: Edward Thomson <ethomson@github.com>
Co-authored-by: Sarah Edwards <skedwards88@github.com>
2021-12-02 16:35:31 -08:00
Octomerger Bot
e97a42766f Merge branch 'main' into repo-sync 2021-12-01 20:09:00 -06:00
Ferenc Hammerl
bee380f827 Add new runner variable runner.arch (#12374)
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
2021-12-02 11:16:55 +10:00
Octomerger Bot
a8cdfeea18 Merge branch 'main' into repo-sync 2021-11-30 20:07:30 -05:00
Casper Smits
066d37365a Document reusable workflow limitation (#11831) 2021-12-01 00:29:45 +00:00
Edward Thomson
639debe227 actions: update "understanding github actions" (#23201)
* actions: update "understanding github actions"

Take a refresh pass on the "understanding github actions" document, in
order to reinforce our CI/CD messaging and definitions, and update the
art with high-res illustrations.

* Apply suggestions from code review

Co-authored-by: Martin Lopes <martin389@github.com>

Co-authored-by: Martin Lopes <martin389@github.com>
Co-authored-by: jmarlena <6732600+jmarlena@users.noreply.github.com>
2021-11-30 21:55:23 +00:00
Nicholas Hebert
96d7e02c2d Add missing raw element 2021-11-30 10:51:37 -04:00
Nicholas Hebert
c1d3b96326 Provide workflow_dispatch variable usage example 2021-11-30 10:21:48 -04:00
hubwriter
5c8f14d07c Add clarification sentence (#23174) 2021-11-30 09:28:56 +00:00
hubwriter
dc9dab0032 [GA date TBD] Update reusable workflows docs for GA (#22795)
* Update reusable workflows docs

* Update content/actions/learn-github-actions/reusing-workflows.md

Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>

* Update content/actions/learn-github-actions/reusing-workflows.md

* Update content/actions/learn-github-actions/reusing-workflows.md

* Update content/actions/learn-github-actions/reusing-workflows.md

Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>

* Update content/actions/learn-github-actions/reusing-workflows.md

Co-authored-by: Martin Lopes <martin389@github.com>

* Apply review suggestion from Lucas

* Update content/actions/learn-github-actions/reusing-workflows.md

Co-authored-by: Martin Lopes <martin389@github.com>

* Update content/actions/learn-github-actions/reusing-workflows.md

Co-authored-by: Martin Lopes <martin389@github.com>

* Update content/actions/learn-github-actions/reusing-workflows.md

Co-authored-by: Martin Lopes <martin389@github.com>

* Add information about use of runners

As per review comment from Ajay Krishna Nalisetty

* Update content/actions/learn-github-actions/workflow-syntax-for-github-actions.md

Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>

* Update content/actions/learn-github-actions/workflow-syntax-for-github-actions.md

* Fix version as per Lucas's review comment

* Explain using environment secrets

* Add workflow diagram

* Move explanation of diagram above it

* Slight change to job_workflow-ref description

Include the syntax of the response data, as per
https://github.slack.com/archives/C01SMLA6MNY/p1637731982336700

* Clarify difference between repo and job_workflow_ref

Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
Co-authored-by: Martin Lopes <martin389@github.com>
Co-authored-by: Octomerger Bot <63058869+Octomerger@users.noreply.github.com>
2021-11-24 14:26:50 +00:00
Laura Coursen
b64e85ce60 Learning path to help enterprises adopt Actions (#22513) 2021-11-18 23:40:18 +00:00
Chris Patterson
ad605a410c Updated workflow inputs example to include types (#22588)
* Updated workflow inputs example to include types

* Add versioning for GHEC/GHES/GHAE

* Remove links to actions.yaml info

Co-authored-by: hubwriter <hubwriter@github.com>
2021-11-18 11:38:33 +00:00
Lucas Costi
f68e0d2114 Typo fix in Action workflow command article (#12040) 2021-11-16 09:04:52 +00:00
Simran
9448e2ff51 Actions: Add echo workflow command (#11567)
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
2021-11-16 03:50:00 +00:00
Kristof Mattei
2374f8d472 fix: updated PowerShell UTF-8 warning to narrow it down to legacy PowerShell on Windows only 2021-11-10 09:06:48 -08:00
Kristof Mattei
7a5e9d7f8b fix: corrected casing of PowerShell 2021-11-10 09:06:48 -08:00
Kristof Mattei
8965884f27 Made jobs.<job_id>.steps[*].shell a separate ## (#11335) 2021-11-10 13:57:01 +00:00
ajaykn
f42bdab3ff [Actions] Update context availability for reusable wfs (#22581) 2021-11-10 05:41:08 +00:00
Octomerger Bot
fc455c713b Merge branch 'main' into repo-sync 2021-11-09 18:23:29 -05:00
Nick Graef
e7706dbde7 fix workflow_call inputs path in workflow syntax (#11220) 2021-11-09 22:52:27 +00:00
Chris Patterson
87806da349 Added new context properties and environment variables for refs (#22188)
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
2021-11-08 00:47:58 +00:00
Ramya Parimi
a4fb8bb237 Added versioning to the new content to fix broken links (#22621)
* Update contexts.md

* Update contexts.md

* Update content/actions/learn-github-actions/contexts.md

Co-authored-by: Sarita Iyer <66540150+saritai@users.noreply.github.com>

* Update contexts.md

added versioning to input context

* Update contexts.md

Co-authored-by: Sarita Iyer <66540150+saritai@users.noreply.github.com>
2021-11-04 20:54:55 +00:00
Ramya Parimi
991af51d7b Merge branch 'main' into inputs-context 2021-11-04 10:15:35 -05:00
hubwriter
d7a4e933dc Document 3-level restriction for workflow_run (#22508)
* Document 3-level restriction for workflow_run

* Update content/actions/learn-github-actions/events-that-trigger-workflows.md

* Update content/actions/learn-github-actions/events-that-trigger-workflows.md

Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>

Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
2021-11-02 15:30:53 +00:00