{"id":7737,"date":"2025-08-29T13:12:52","date_gmt":"2025-08-29T13:12:52","guid":{"rendered":"https:\/\/techhub.saworks.io\/?post_type=docs&#038;p=7737"},"modified":"2025-09-24T12:02:34","modified_gmt":"2025-09-24T12:02:34","slug":"implementer-des-variables-et-des-scripts-dans-un-flux-de-travail","status":"publish","type":"docs","link":"https:\/\/techhub.saworks.io\/fr\/docs\/tutoriel-github-intermediaire\/automatiser-les-tests-de-charge-azure-en-utilisant-github\/implementer-des-variables-et-des-scripts-dans-un-flux-de-travail\/","title":{"rendered":"Impl\u00e9menter des variables et des scripts dans un flux de travail"},"content":{"rendered":"\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<p><strong>Maintenant que vous connaissez les composants d\u2019un fichier de flux de travail, explorons comment personnaliser ces flux pour diff\u00e9rents sc\u00e9narios. Dans cette unit\u00e9, nous allons nous concentrer sur l\u2019utilisation des variables et des scripts pour optimiser le flux de travail.<\/strong><\/p>\n\n\n\n<p>Les <strong>variables<\/strong> offrent un moyen de stocker et de r\u00e9utiliser des informations de configuration non sensibles. Vous pouvez stocker n\u2019importe quelle donn\u00e9e de configuration, comme des options de compilation, des noms d\u2019utilisateur ou des noms de serveurs, sous forme de variables. Les variables sont interpol\u00e9es sur la machine d\u2019ex\u00e9cution qui ex\u00e9cute votre flux de travail. Les commandes ex\u00e9cut\u00e9es dans les actions ou les \u00e9tapes du flux de travail peuvent cr\u00e9er, lire et modifier des variables.<\/p>\n\n\n\n<p>Vous pouvez d\u00e9finir vos propres variables personnalis\u00e9es ou utiliser les variables d\u2019environnement par d\u00e9faut que GitHub d\u00e9finit automatiquement. Il existe deux fa\u00e7ons de cr\u00e9er une variable personnalis\u00e9e :<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Pour d\u00e9finir une variable d\u2019environnement \u00e0 utiliser dans un seul flux de travail<\/strong>, vous pouvez utiliser la cl\u00e9 <code>env<\/code> dans le fichier de flux de travail.<\/li>\n\n\n\n<li><strong>Pour d\u00e9finir une variable de configuration utilisable dans plusieurs flux de travail<\/strong>, vous pouvez la d\u00e9finir au niveau de l\u2019organisation, du d\u00e9p\u00f4t ou de l\u2019environnement.<\/li>\n<\/ol>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">D\u00e9finir des variables d\u2019environnement pour un seul flux de travail<\/h3>\n\n\n\n<p>Pour d\u00e9finir une variable d\u2019environnement personnalis\u00e9e pour un seul flux de travail, vous pouvez utiliser la cl\u00e9 <code>env<\/code> dans le fichier YAML du flux de travail. La port\u00e9e d\u2019une variable personnalis\u00e9e d\u00e9finie de cette mani\u00e8re est limit\u00e9e \u00e0 l\u2019\u00e9l\u00e9ment o\u00f9 elle est d\u00e9finie. Vous pouvez d\u00e9finir des variables avec les port\u00e9es suivantes :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Pour l\u2019ensemble du flux de travail<\/strong>, en utilisant <code>env<\/code> au niveau sup\u00e9rieur du fichier.<\/li>\n\n\n\n<li><strong>Pour le contenu d\u2019un job dans le flux de travail<\/strong>, en utilisant <code>jobs.&lt;job_id>.env<\/code>.<\/li>\n\n\n\n<li><strong>Pour une \u00e9tape sp\u00e9cifique dans un job<\/strong>, en utilisant <code>jobs.&lt;job_id>.steps[*].env<\/code>.<\/li>\n<\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-group has-background is-layout-constrained wp-block-group-is-layout-constrained\" style=\"border-width:1px;border-radius:15px;background-color:#9b51e04d\">\n<h3 class=\"wp-block-heading\"><strong>Remarque<\/strong><\/h3>\n\n\n\n<p>Les cl\u00e9s <code>jobs.&lt;job_id>.env<\/code> et <code>jobs.&lt;job_id>.steps[*].env<\/code> mettent en \u0153uvre des <em>contextes<\/em>, qui seront abord\u00e9s plus loin dans ce module.<\/p>\n<\/div>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>L\u2019exemple de flux de travail suivant impl\u00e9mente deux variables, <code>DAY_OF_WEEK<\/code> et <code>Greeting<\/code>, pour produire un message de salutation lors de son ex\u00e9cution.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.75rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#24292e;--cbp-line-number-width:calc(2 * 0.6 * .75rem);line-height:1rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#f2f2f2;color:#2f363c\">YAML<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#24292e;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>name: Greeting on variable day\n\non:\n  workflow_dispatch\n\nenv:\n  DAY_OF_WEEK: Monday\n\njobs:\n  greeting_job:\n    runs-on: ubuntu-latest\n    env:\n      Greeting: Hello\n    steps:\n      - name: \"Say Hello\"\n        run: echo \"$Greeting, today is $DAY_OF_WEEK!\"<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-light\" style=\"background-color: #fff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #22863A\">name<\/span><span style=\"color: #24292E\">: <\/span><span style=\"color: #032F62\">Greeting on variable day<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #005CC5\">on<\/span><span style=\"color: #24292E\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">  <\/span><span style=\"color: #032F62\">workflow_dispatch<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #22863A\">env<\/span><span style=\"color: #24292E\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">  <\/span><span style=\"color: #22863A\">DAY_OF_WEEK<\/span><span style=\"color: #24292E\">: <\/span><span style=\"color: #032F62\">Monday<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #22863A\">jobs<\/span><span style=\"color: #24292E\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">  <\/span><span style=\"color: #22863A\">greeting_job<\/span><span style=\"color: #24292E\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">    <\/span><span style=\"color: #22863A\">runs-on<\/span><span style=\"color: #24292E\">: <\/span><span style=\"color: #032F62\">ubuntu-latest<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">    <\/span><span style=\"color: #22863A\">env<\/span><span style=\"color: #24292E\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">      <\/span><span style=\"color: #22863A\">Greeting<\/span><span style=\"color: #24292E\">: <\/span><span style=\"color: #032F62\">Hello<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">    <\/span><span style=\"color: #22863A\">steps<\/span><span style=\"color: #24292E\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">      - <\/span><span style=\"color: #22863A\">name<\/span><span style=\"color: #24292E\">: <\/span><span style=\"color: #032F62\">&quot;Say Hello&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">        <\/span><span style=\"color: #22863A\">run<\/span><span style=\"color: #24292E\">: <\/span><span style=\"color: #032F62\">echo &quot;$Greeting, today is $DAY_OF_WEEK!&quot;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Conventions de nommage pour les variables d\u2019environnement<\/strong><\/h3>\n\n\n\n<p>Lorsque vous d\u00e9finissez une variable d\u2019environnement, vous ne pouvez pas utiliser les noms des variables d\u2019environnement par d\u00e9faut. Si vous tentez d\u2019\u00e9craser la valeur de l\u2019une de ces variables par d\u00e9faut, l\u2019affectation sera ignor\u00e9e.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-group has-background is-layout-constrained wp-block-group-is-layout-constrained\" style=\"background-color:#fcb90054\">\n<h3 class=\"wp-block-heading\">\ud83d\udca1&nbsp;<strong>Astuce<\/strong><\/h3>\n\n\n\n<p>Pour obtenir la liste compl\u00e8te des variables d\u2019environnement par d\u00e9faut, consultez la page <strong>Variables d\u2019environnement par d\u00e9faut<\/strong>.<\/p>\n<\/div>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Cr\u00e9er des variables de configuration pour un d\u00e9p\u00f4t<\/strong><\/h3>\n\n\n\n<p>Pour cr\u00e9er des secrets ou des variables sur GitHub pour un d\u00e9p\u00f4t appartenant \u00e0 un compte personnel, vous devez \u00eatre le propri\u00e9taire du d\u00e9p\u00f4t.<br>Pour cr\u00e9er des secrets ou des variables sur GitHub pour un d\u00e9p\u00f4t appartenant \u00e0 une organisation, vous devez avoir un acc\u00e8s administrateur.<br>Enfin, pour cr\u00e9er des secrets ou des variables via l\u2019API REST, que ce soit pour un d\u00e9p\u00f4t personnel ou organisationnel, vous devez avoir un acc\u00e8s collaborateur.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Priorit\u00e9 des variables de configuration<\/strong><\/h3>\n\n\n\n<p>Si une variable portant le m\u00eame nom existe \u00e0 plusieurs niveaux, <strong>la variable d\u00e9finie au niveau le plus bas<\/strong> prend le dessus.<br>Par exemple, si une variable d\u00e9finie au niveau de l\u2019organisation a le m\u00eame nom qu\u2019une variable d\u00e9finie au niveau du d\u00e9p\u00f4t, alors <strong>la variable du d\u00e9p\u00f4t<\/strong> sera prioritaire.<br>De m\u00eame, si une variable est d\u00e9finie au niveau de l\u2019organisation, du d\u00e9p\u00f4t et de l\u2019environnement, <strong>la variable de l\u2019environnement<\/strong> sera prioritaire.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Ajouter des scripts \u00e0 votre flux de travail<\/strong><\/h3>\n\n\n\n<p>Vous pouvez utiliser un flux de travail GitHub Actions pour ex\u00e9cuter des scripts et des commandes shell, qui seront lanc\u00e9s sur le runner assign\u00e9.<br>L\u2019exemple suivant montre comment utiliser le mot-cl\u00e9 <code>run<\/code> pour ex\u00e9cuter la commande suivante sur le runner :<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.75rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#24292e;--cbp-line-number-width:calc(1 * 0.6 * .75rem);line-height:1rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#f2f2f2;color:#2f363c\">YAML<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#24292e;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>jobs:\n  example-job:\n    runs-on: ubuntu-latest\n    steps:\n      - run: npm install -g bats<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-light\" style=\"background-color: #fff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #22863A\">jobs<\/span><span style=\"color: #24292E\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">  <\/span><span style=\"color: #22863A\">example-job<\/span><span style=\"color: #24292E\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">    <\/span><span style=\"color: #22863A\">runs-on<\/span><span style=\"color: #24292E\">: <\/span><span style=\"color: #032F62\">ubuntu-latest<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">    <\/span><span style=\"color: #22863A\">steps<\/span><span style=\"color: #24292E\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">      - <\/span><span style=\"color: #22863A\">run<\/span><span style=\"color: #24292E\">: <\/span><span style=\"color: #032F62\">npm install -g bats<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Pour ex\u00e9cuter un script stock\u00e9 dans votre d\u00e9p\u00f4t, vous devez d\u2019abord r\u00e9cup\u00e9rer (checkout) le d\u00e9p\u00f4t sur le runner.<\/strong><br>L\u2019exemple suivant :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>r\u00e9cup\u00e8re le d\u00e9p\u00f4t ;<\/li>\n\n\n\n<li>d\u00e9finit le r\u00e9pertoire de travail (l\u2019emplacement des scripts dans le d\u00e9p\u00f4t) ;<\/li>\n\n\n\n<li>ex\u00e9cute le script <code>my-script.sh<\/code>.<\/li>\n<\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.75rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#24292e;--cbp-line-number-width:calc(2 * 0.6 * .75rem);line-height:1rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#f2f2f2;color:#2f363c\">YAML<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#24292e;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>jobs:\n  example-job:\n    runs-on: ubuntu-latest\n    defaults:\n      run:\n        working-directory: .\/scripts\n    steps:\n      - name: Check out the repository to the runner\n        uses: actions\/checkout@v4  \n      - name: Run a script\n        run: .\/my-script.sh<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-light\" style=\"background-color: #fff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #22863A\">jobs<\/span><span style=\"color: #24292E\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">  <\/span><span style=\"color: #22863A\">example-job<\/span><span style=\"color: #24292E\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">    <\/span><span style=\"color: #22863A\">runs-on<\/span><span style=\"color: #24292E\">: <\/span><span style=\"color: #032F62\">ubuntu-latest<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">    <\/span><span style=\"color: #22863A\">defaults<\/span><span style=\"color: #24292E\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">      <\/span><span style=\"color: #22863A\">run<\/span><span style=\"color: #24292E\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">        <\/span><span style=\"color: #22863A\">working-directory<\/span><span style=\"color: #24292E\">: <\/span><span style=\"color: #032F62\">.\/scripts<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">    <\/span><span style=\"color: #22863A\">steps<\/span><span style=\"color: #24292E\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">      - <\/span><span style=\"color: #22863A\">name<\/span><span style=\"color: #24292E\">: <\/span><span style=\"color: #032F62\">Check out the repository to the runner<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">        <\/span><span style=\"color: #22863A\">uses<\/span><span style=\"color: #24292E\">: <\/span><span style=\"color: #032F62\">actions\/checkout@v4<\/span><span style=\"color: #24292E\">  <\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">      - <\/span><span style=\"color: #22863A\">name<\/span><span style=\"color: #24292E\">: <\/span><span style=\"color: #032F62\">Run a script<\/span><\/span>\n<span class=\"line\"><span style=\"color: #24292E\">        <\/span><span style=\"color: #22863A\">run<\/span><span style=\"color: #24292E\">: <\/span><span style=\"color: #032F62\">.\/my-script.sh<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Tout script que vous souhaitez ex\u00e9cuter dans un job de flux de travail doit \u00eatre ex\u00e9cutable.<\/strong><br>Vous pouvez passer le script en argument \u00e0 l\u2019interpr\u00e9teur qui l\u2019ex\u00e9cute \u2014 par exemple :<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.75rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#24292e;--cbp-line-number-width:calc(1 * 0.6 * .75rem);line-height:1rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#f2f2f2;color:#2f363c\">YAML<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#24292e;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>run: bash script.sh<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-light\" style=\"background-color: #fff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #22863A\">run<\/span><span style=\"color: #24292E\">: <\/span><span style=\"color: #032F62\">bash script.sh<\/span><\/span><\/code><\/pre><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Maintenant que vous connaissez les composants d\u2019un fichier de flux de travail, explorons comment personnaliser ces flux pour diff\u00e9rents sc\u00e9narios. Dans cette unit\u00e9, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":7721,"menu_order":45,"template":"","doc_tag":[],"doc_badge":[],"class_list":["post-7737","docs","type-docs","status-publish","hentry"],"author_avatar":"https:\/\/secure.gravatar.com\/avatar\/6a70e7c73db9f245e650948d09d74f61?s=96&d=mm&r=g","author_name":"Annick N'dri","_links":{"self":[{"href":"https:\/\/techhub.saworks.io\/fr\/wp-json\/wp\/v2\/docs\/7737"}],"collection":[{"href":"https:\/\/techhub.saworks.io\/fr\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/techhub.saworks.io\/fr\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/techhub.saworks.io\/fr\/wp-json\/wp\/v2\/users\/2"}],"version-history":[{"count":0,"href":"https:\/\/techhub.saworks.io\/fr\/wp-json\/wp\/v2\/docs\/7737\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/techhub.saworks.io\/fr\/wp-json\/wp\/v2\/docs\/7721"}],"wp:attachment":[{"href":"https:\/\/techhub.saworks.io\/fr\/wp-json\/wp\/v2\/media?parent=7737"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/techhub.saworks.io\/fr\/wp-json\/wp\/v2\/doc_tag?post=7737"},{"taxonomy":"doc_badge","embeddable":true,"href":"https:\/\/techhub.saworks.io\/fr\/wp-json\/wp\/v2\/doc_badge?post=7737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}