1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Commit Graph

47 Commits

Author SHA1 Message Date
Matt Pollard
79bab19c73 Merge branch 'main' into patch-3 2022-08-10 10:27:30 +02:00
Mikhail Timofeev
6e1bf47b5c Add a note about Ubuntu 18 deprecation (#29527)
Co-authored-by: Dusko Dobranic <101048884+ddobranic@users.noreply.github.com>
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
Co-authored-by: skedwards88 <skedwards88@github.com>
2022-08-09 13:37:39 -07:00
Nikola Jokic
a64e57605b Update content/actions/using-workflows/workflow-syntax-for-github-actions.md
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
2022-08-09 16:32:43 +02:00
Nikola Jokic
d087a01da6 Clarify how the bash shell will be invoked if not specified explicitly for jobs.<job_id>.steps[*].shell 2022-07-21 10:19:48 +02:00
Octomerger Bot
6cb994ea85 Merge branch 'main' into repo-sync 2022-07-12 06:57:16 -05:00
Octomerger Bot
5996d858b7 Merge branch 'main' into repo-sync 2022-07-12 06:48:50 -05:00
Martin Lopes
2ec9640ca0 Apply suggestions from code review 2022-07-12 14:40:25 +10:00
Hector Alfaro
95e6f3d3ab Deprecate GHES 3.1 (#28798)
* add 3.1 to deprecated versions

* rewrite img src to use azure blob storage in archive script

Co-authored-by: rachmari <rachmari@users.noreply.github.com>

* remove static files for ghes 3.1

* remove liquid conditionals and content for ghes 3.1

* remove outdated hardware reqs reusable

* Fix liquid conditional uncaught by script

* Close liquid conditionals missed by script

* Apply @mattpollard's suggestions

Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>

Co-authored-by: rachmari <rachmari@users.noreply.github.com>
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
2022-07-11 21:17:09 +00:00
Nikola Jokic
e34b844050 Change docs around -eo pipefail when shell is not specified 2022-07-05 10:26:21 +02:00
Sarah Schneider
f44578572c Ran script/content-migrations/convert-if-to-ifversion.js 2022-06-06 18:13:12 -04:00
Ajay
5ffb9e4ca9 [Actions - Reusable workflows] Fix secrets inherit path (#28093) 2022-05-30 17:26:22 +10:00
Linda_pp
059d9f0b78 Fix document of on.workflow_call.secrets.inherit (#17929) 2022-05-30 00:47:00 +00:00
Jenni Christensen
0086470a55 Merge branch 'main' into anthms/fix-actions-link-anchor 2022-05-10 12:10:29 -07:00
Martin Lopes
5dd92d04aa Reusable workflows: Inherit secrets (#27276) 2022-05-03 15:15:40 +10:00
Martin Lopes
17b34e16cd Revert "actions-inherit-secrets-reusable-workflows 2022-04-27 17:11:58 +10:00
Martin Lopes
75e99902d8 Merge branch 'main' into nick/inhert_secrets 2022-04-27 13:25:37 +10:00
Nicholas Bergesen
32287cd6aa Code review updated 2022-04-27 00:28:08 +00:00
Sarah Edwards
ed4bcb96a0 Add more examples about actions matrixes (#26890)
Co-authored-by: Jacob Wallraff <thyeggman@github.com>
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
2022-04-26 17:43:08 +00:00
Nicholas Bergesen
8ec17c1b01 Update content/actions/using-workflows/workflow-syntax-for-github-actions.md
Co-authored-by: Martin Lopes <martin389@github.com>
2022-04-26 16:24:11 +09:00
Nicholas Bergesen
965c28d292 Update content/actions/using-workflows/workflow-syntax-for-github-actions.md
Co-authored-by: yujincat <55138573+yujincat@users.noreply.github.com>
2022-04-26 13:10:32 +09:00
Nicholas Bergesen
0c116d8595 Merge branch 'nick/inhert_secrets' of https://github.com/nicholasbergesen/docs into nick/inhert_secrets 2022-04-26 00:29:31 +00:00
Nicholas Bergesen
fcbd827a90 Update inherit example 2022-04-26 00:27:19 +00:00
Nicholas Bergesen
0f88ca315a Update content/actions/using-workflows/workflow-syntax-for-github-actions.md
Co-authored-by: yujincat <55138573+yujincat@users.noreply.github.com>
2022-04-26 09:19:09 +09:00
Nicholas Bergesen
bbfbebda82 Add inherit secret update to docs. 2022-04-25 03:11:34 +00:00
Lucas Costi
b49c768777 Version actions for GHES, use reusables (#26004)
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: Sarah Edwards <skedwards88@github.com>
2022-04-01 09:36:17 +10:00
Anthony
23daa06f3a Fix link in workflow-syntax-for-github-actions.md 2022-03-25 16:06:00 -04:00
Brendon Smith
06cf952123 Document how to use secrets with if: conditionals in GitHub Actions workflows (#12722)
* 🔒 Document how to use secrets with `if:`

github/docs#6861
github/docs#12722

- Add a complete workflow example to `jobs.<job_id>.steps[*].if`,
  demonstrating how to skip a step if a secret is not present
- Add an explanation to "Using encrypted secrets in a workflow"
- Cross-reference the two pages

* 🔒 Compare secrets with empty strings in `if:`

github/docs#6861
https://github.com/github/docs/pull/12722#discussion_r801011000

Rather than referencing two secrets:

1. `${{ secrets.SECRET_IS_SET }}`
2. `${{ secrets.SECRET_IS_NOT_SET }}`)

This commit will update the related section of the docs to reference a
single secret (`${{ secrets.SECRET_IS_SET }}`), and will update the
`if:` conditionals to compare with empty strings as suggested.

* 🔒 Add missing `{% raw %}`/`{% endraw %}`

github/docs#6861
github/docs#12722

Some `${{ }}` values were converted to `$` in the preview environment.
Adding `{% raw %}`/`{% endraw %}` will preserve the raw value.

* 🔒 Match variable and secret names in examples

github/docs#6861
https://github.com/github/docs/pull/12722#discussion_r801011000

This PR adds an example of how to use secrets with `if:` conditionals.
The reviewer suggested comparing variable values with empty strings to
make the `if:` conditionals clearer.

Commit cecdf00 updated the secret names accordingly, but the names of
the secret and environment variable may still have been confusing.

This commit will update the secret and environment variable names to
match the cross-referenced example on the "Encrypted secrets" page.

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

Co-authored-by: hubwriter <hubwriter@github.com>
2022-03-18 14:20:40 +00:00
Jenni Christensen
fa2d1c17d6 Merge branch 'main' into dihydroJen-1 2022-03-15 17:13:08 -07:00
Octomerger Bot
f86f9878b8 Merge branch 'main' into repo-sync 2022-03-03 12:49:30 -08:00
Robert Sese
79c48070c4 Deprecate 3.0 (#25646)
* Deprecate 3.0

* 3.0 deprecation: remove 3.0 markup (#25647)

* Remove liquid conditionals and content for 3.0 deprecation

* Remove manually, no longer versioned in a supported version

* Remove translations manually, no longer versioned in a supported version

* Remove 'if', now in all supported versions

* Remove dangling 'elseif', now in all supported versions

* Remove dangling 'elseif' and 3.0 screenshot reference, now in all supported versions

* Nudge to latest supported GHES version

* Nudge to latest supported release GHES version

* Bump all the version for the liquid tests

* Bump first deprecated version for linting tests

* Prefer double quotes

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

* Prefer double quotes

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

* Prefer double quotes

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

* Prefer double quotes

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

* Prefer double quotes

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

* Prefer double quotes

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

* Prefer double quotes

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

* Prefer double quotes

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

* Prefer double quotes

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

* Remove extra newline

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

* Remove extra newline

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

* Remove extra newline

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

* One reusable per line

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

* One reusable per line

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

* One reusable per line

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

* Version check not needed anymore

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

* Version check not needed anymore

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

* Version check not needed anymore

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

* Version check not needed anymore

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

* Version check not needed anymore

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

* Version check not needed anymore

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

* Version check not needed anymore

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

* Stray whitespace ✂️

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

* Stray whitespace ✂️

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

* Stray whitespace ✂️

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

* Stray whitespace ✂️

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

* Stray whitespace ✂️

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

* Stray whitespace ✂️

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

* Stray whitespace ✂️

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

* Stray whitespace ✂️

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

* Version check not needed anymore

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

* Version check not needed anymore

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

* Just 'ghes' since we're deprecating 3.0

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

* Just 'ghes' since we're deprecating 3.0

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

* Just 'ghes' since we're deprecating 3.0

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

* Just 'ghes' since we're deprecating 3.0

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

* Just 'ghes' since we're deprecating 3.0

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

* Just 'ghes' since we're deprecating 3.0

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

* Just 'ghes' since we're deprecating 3.0

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

* Just 'ghes' since we're deprecating 3.0

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

* Don't depend on hardcoded versions

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

* Remove static files for 3.0 deprecation (#25649)

Co-authored-by: Laura Coursen <lecoursen@github.com>
2022-03-03 13:08:24 -06:00
Laura Coursen
bc60b86d02 Merge branch 'main' into patch-3 2022-03-03 12:47:12 -06:00
Laura Coursen
b78f3eca16 Add 💅 2022-03-03 12:46:37 -06:00
Flash Sheridan
731094795c rm suggestion about non-Bash shell
…and complex manipulation of variables.

Co-authored-by: Edward Thomson <ethomson@github.com>
2022-03-02 19:45:36 -05:00
Sophie
50c0b2d0b0 Removed duplicate actions reusable folder 2022-02-25 15:51:14 +01:00
Jenni Christensen
235497a200 Added a link to the section on the GITHUB_TOKEN 2022-02-24 09:30:49 -08:00
Jenni Christensen
07a39ba4a3 Added GitHub Token expiration information 2022-02-24 09:09:14 -08:00
Flash Sheridan
10c25fee3c Add warning about env vars defined via others
Note that variables in the `env` map cannot be defined in terms of other variables in the map.
2022-02-18 16:17:11 -05:00
Vanessa
4b8b75e337 GitHub Enterprise Server 3.4 release candidate (#24754)
Co-authored-by: Laura Coursen <lecoursen@github.com>
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
Co-authored-by: Vanessa <vgrl@github.com>
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
Co-authored-by: Lars Schneider <larsxschneider@github.com>
Co-authored-by: Jared Murrell <primetheus@github.com>
Co-authored-by: Jules Parker <19994093+jules-p@users.noreply.github.com>
Co-authored-by: Docubot <67483024+docubot@users.noreply.github.com>
Co-authored-by: Martin Lopes <martin389@github.com>
Co-authored-by: Laura Coursen <lecoursen@github.com>
Co-authored-by: Sarita Iyer <saritai@github.com>
Co-authored-by: Sarita Iyer <66540150+saritai@users.noreply.github.com>
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
Co-authored-by: hubwriter <hubwriter@github.com>
Co-authored-by: Steve Guntrip <stevecat@github.com>
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
Co-authored-by: Lars Schneider <larsxschneider@github.com>
Co-authored-by: Jared Murrell <primetheus@github.com>
Co-authored-by: github-openapi-bot <69533958+github-openapi-bot@users.noreply.github.com>
Co-authored-by: github-openapi-bot <github-openapi-bot@users.noreply.github.com>
2022-02-15 13:40:37 -05:00
Josh Johanning
ecf63b5166 adding reusable to note that you have to use linux runners 2022-02-08 13:00:01 -06:00
Laura Coursen
f0ff74f4e3 Merge branch 'main' into patch-3 2022-02-07 13:35:59 -06:00
Albin PK
9c71c6dc7f Update workflow-syntax-for-github-actions.md 2022-02-05 22:47:31 +05:30
Josh Johanning
2473b7fdd3 updating ghcr_token github_token 2022-02-04 10:30:11 -06:00
ajaykn
b9d1c491b0 Remove version in local action syntax (#24646) 2022-01-26 10:52:57 +00:00
Sarah Edwards
fe1dfd917f Split 'Events that trigger workflows' into two articles (#24392) 2022-01-25 22:25:13 +00:00
hubwriter
dee8b01375 Reusable workflows can be referenced with a local path [GA] (#24306)
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
2022-01-25 01:21:41 +00:00
hubwriter
f77f5f5cb9 [Improvement] Add details of new workflow_dispatch input types (#24382)
* Fix incorrect versioning

* Add new screenshot

* Add replacement yaml example

* Add raw tags around yaml

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

Co-authored-by: Sarah Edwards <skedwards88@github.com>

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

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

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

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

Co-authored-by: Sarah Edwards <skedwards88@github.com>

Co-authored-by: Sarah Edwards <skedwards88@github.com>
2022-01-24 16:25:24 +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