1
0
mirror of synced 2025-12-21 02:46:50 -05:00
Commit Graph

64 Commits

Author SHA1 Message Date
Mark Iannucci
b110dac84d Add link to context availability for workflow .if key syntax (#22437)
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
2022-12-06 05:57:20 +00:00
Matt Pollard
660424ce23 Update release note and documentation for reusable workflows in GitHub AE 3.4 (#33229) 2022-12-05 17:34:09 +01:00
Isaac Shalom
92b810c8d6 Add clarification about default run-name in Actions (#31946)
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
2022-10-26 01:51:04 +00:00
Sarah Edwards
dac4144086 PAT v2 beta (#31013)
Co-authored-by: Hirsch Singhal <1666363+hpsin@users.noreply.github.com>
Co-authored-by: Jovel Crisostomo <jovel@github.com>
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
Co-authored-by: Vanessa <vgrl@github.com>
2022-10-18 15:11:04 +00:00
Andy Crain
22fd1d8937 Remove 'choice' option for workflow_call type (#21325)
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
2022-10-18 01:19:43 +00:00
Tomáš Fejfar
13b64e6dff Update workflow-syntax-for-github-actions.md
The docs show choice in the examples: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#providing-inputs
2022-10-07 16:35:19 +02:00
Lucas Costi
e3612a461b Fix "Actions page" to "Actions tab" (#31178) 2022-09-27 03:55:26 +00:00
Lucas Costi
9c8e396b7e Add GitHub Actions run-name feature (#30993)
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
2022-09-26 14:40:54 -07:00
Sarah Schneider
b7f48ea2c1 Support GHAE internal-only semantic versioning (#29178)
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
2022-09-22 08:26:58 +02:00
Martin Lopes
b3180e6837 Merge branch 'main' into major-versions-not-automatically-tagged 2022-08-23 14:42:48 +10:00
Martin Lopes
366355e268 Apply suggestions from code review 2022-08-23 14:42:37 +10:00
Noritada Kobayashi
f55237c549 Mention on the use of square brackets in GitHub Actions workflows filter patterns (#18970)
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
2022-08-22 16:29:27 +10:00
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
Martin Lopes
dd22a98909 Merge branch 'main' into major-versions-not-automatically-tagged 2022-07-21 15:48:01 +10:00
Martin Lopes
5966392e9c Update content/actions/using-workflows/workflow-syntax-for-github-actions.md 2022-07-21 15:46:35 +10:00
Martin Lopes
a61d92758f Apply suggestions from code review
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2022-07-21 15:43:03 +10:00
Martin Lopes
7194d4a616 Apply suggestions from code review
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2022-07-21 15:41:10 +10: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
Kurt von Laven
7d66b76679 Note major versions are not automatically tagged
The previous wording can be misinterpreted to suggest that GitHub
Actions itself automatically tags major versions.

Also, remove assurance that pinning the major version protects your
workflow from breaking. This is only true if the action you depends on
never introduces any bugs that affect you. In other words, it's false in
practice.
2022-05-11 19:49:11 -04: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