Skip to content

Commit 9aac81e

Browse files
authored
Merge pull request #22559 from github/repo-sync
repo sync
2 parents 96c7219 + f4216b9 commit 9aac81e

File tree

213 files changed

+3820
-4298
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+3820
-4298
lines changed

translations/de-DE/content/actions/creating-actions/about-custom-actions.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ type: overview
1616
topics:
1717
- Action development
1818
- Fundamentals
19-
ms.openlocfilehash: ac933a5014750f75373fafa7f8dd52333b79a469
20-
ms.sourcegitcommit: 47bd0e48c7dba1dde49baff60bc1eddc91ab10c5
19+
ms.openlocfilehash: 1e81bea551ceff1980b0bbe96202f60db0d0e7f2
20+
ms.sourcegitcommit: 9af8891fea10039b3374c76818634e05410e349d
2121
ms.translationtype: HT
2222
ms.contentlocale: de-DE
23-
ms.lasthandoff: 09/05/2022
24-
ms.locfileid: '147154573'
23+
ms.lasthandoff: 12/06/2022
24+
ms.locfileid: '148191952'
2525
---
2626
{% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %}
2727

@@ -35,7 +35,7 @@ Aktionen können direkt auf einem Computer oder in einem Docker-Container laufen
3535

3636
## Arten von Aktionen
3737

38-
Du kannst Docker-Container- und JavaScript-Aktionen erstellen. Aktionen benötigen eine Metadaten-Datei, in der die Eingaben, Ausgaben und der Haupteinstiegspunkt für die Aktion definiert werden. Der Name der Metadatendatei muss entweder `action.yml` oder `action.yaml` lauten. Weitere Informationen findest du unter [Metadatensyntax für {% data variables.product.prodname_actions %}](/articles/metadata-syntax-for-github-actions).
38+
Du kannst Docker-Container-, JavaScript- und zusammengesetzte Aktionen erstellen. Aktionen benötigen eine Metadaten-Datei, in der die Eingaben, Ausgaben und der Haupteinstiegspunkt für die Aktion definiert werden. Der Name der Metadatendatei muss entweder `action.yml` oder `action.yaml` lauten. Weitere Informationen findest du unter [Metadatensyntax für {% data variables.product.prodname_actions %}](/articles/metadata-syntax-for-github-actions).
3939

4040
| type | Betriebssystem |
4141
| ---- | ------------------- |
@@ -169,6 +169,6 @@ Sowohl {% data variables.product.prodname_actions %} als auch {% data variables.
169169
* Erfordern weder, dass du Code noch eine App bereitstellst.
170170
* Du benötigst eine einfache Schnittstelle zum Erstellen und Verwenden von Geheimnissen. Dadurch können die Aktionen mit Diensten von Drittanbietern interagieren, ohne die Anmelde-Informationen des Aktions-Benutzers speichern zu müssen.
171171

172-
## Weiterführende Themen
172+
## Weitere Informationsquellen
173173

174174
- [Entwicklungstools für {% data variables.product.prodname_actions %}](/articles/development-tools-for-github-actions)

translations/de-DE/content/actions/creating-actions/creating-a-composite-action.md

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Creating a composite action
2+
title: Erstellen einer zusammengesetzten Aktion
33
shortTitle: Create a composite action
4-
intro: 'In this guide, you''ll learn how to build a composite action.'
4+
intro: 'In diesem Leitfaden wird erläutert, wie du eine zusammengesetzte Aktion erstellst.'
55
redirect_from:
66
- /actions/creating-actions/creating-a-composite-run-steps-action
77
versions:
@@ -12,58 +12,61 @@ versions:
1212
type: tutorial
1313
topics:
1414
- Action development
15+
ms.openlocfilehash: 5c7d332d2b3626a5628e85b09c35ffa6a0ca5f33
16+
ms.sourcegitcommit: 4f08a208a0d2e13dc109678750a962ea2f67e1ba
17+
ms.translationtype: HT
18+
ms.contentlocale: de-DE
19+
ms.lasthandoff: 12/06/2022
20+
ms.locfileid: '148192039'
1521
---
22+
{% data reusables.actions.enterprise-beta %} {% data reusables.actions.enterprise-github-hosted-runners %}
1623

17-
{% data reusables.actions.enterprise-beta %}
18-
{% data reusables.actions.enterprise-github-hosted-runners %}
24+
## Einführung
1925

20-
## Introduction
26+
In dieser Anleitung erfährst du mehr über die grundlegenden Komponenten, die benötigt werden, um eine paketierte zusammengesetzte Aktion zu erstellen und zu verwenden. Diese Anleitung fokussiert jene Komponenten, welche zum Paketieren der Aktion benötigt werden. Daher hat der Aktions-Code nur minimale Funktionalität. Die Aktion gibt „Hello World“ und dann „Goodbye“ bzw. nach Angabe eines benutzerdefinierten Namens „Hello [who-to-greet]“ und dann „Goodbye“ aus. Zudem ordnet die Aktion der Ausgabevariablen `random-number` eine Zufallszahl zu und führt ein Skript namens `goodbye.sh` aus.
2127

22-
In this guide, you'll learn about the basic components needed to create and use a packaged composite action. To focus this guide on the components needed to package the action, the functionality of the action's code is minimal. The action prints "Hello World" and then "Goodbye", or if you provide a custom name, it prints "Hello [who-to-greet]" and then "Goodbye". The action also maps a random number to the `random-number` output variable, and runs a script named `goodbye.sh`.
23-
24-
Once you complete this project, you should understand how to build your own composite action and test it in a workflow.
28+
Nach dem Abschluss dieses Projekts weißt du, wie du eine eigene zusammengesetzte Aktion erstellen und in einem Workflow testen kannst.
2529

2630
{% data reusables.actions.context-injection-warning %}
2731

28-
## Prerequisites
32+
## Voraussetzungen
2933

30-
Before you begin, you'll create a repository on {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.location.product_location %}{% endif %}.
34+
Bevor du beginnst, erstellst du ein Repository auf {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.location.product_location %}{% endif %}.
3135

32-
1. Create a new public repository on {% data variables.location.product_location %}. You can choose any repository name, or use the following `hello-world-composite-action` example. You can add these files after your project has been pushed to {% data variables.product.product_name %}. For more information, see "[Create a new repository](/articles/creating-a-new-repository)."
36+
1. Erstelle ein neues öffentliches Repository auf {% data variables.location.product_location %}. Du kannst einen beliebigen Repositorynamen auswählen oder das folgende `hello-world-composite-action`-Beispiel verwenden. Du kannst diese Dateien hinzufügen, nachdem dein Projekt per Push an {% data variables.product.product_name %} übergeben wurde. Weitere Informationen findest du unter [Erstellen eines neuen Repositorys](/articles/creating-a-new-repository).
3337

34-
1. Clone your repository to your computer. For more information, see "[Cloning a repository](/articles/cloning-a-repository)."
38+
1. Klone dein Repository auf deinen Computer. Weitere Informationen findest du unter [Klonen eines Repositorys](/articles/cloning-a-repository).
3539

36-
1. From your terminal, change directories into your new repository.
40+
1. Gehe in deinem Terminal zum Verzeichnisse deines neuen Repositorys.
3741

3842
```shell
3943
cd hello-world-composite-action
4044
```
4145

42-
2. In the `hello-world-composite-action` repository, create a new file called `goodbye.sh`, and add the following example code:
46+
2. Erstelle im Repository `hello-world-composite-action` eine neue Datei namens `goodbye.sh`, und füge den folgenden Beispielcode hinzu:
4347

4448
```bash
4549
echo "Goodbye"
4650
```
4751

48-
3. From your terminal, make `goodbye.sh` executable.
52+
3. Lege `goodbye.sh` über das Terminal als ausführbare Datei fest.
4953

5054
```shell
5155
chmod +x goodbye.sh
5256
```
5357

54-
1. From your terminal, check in your `goodbye.sh` file.
58+
1. Checke die Datei `goodbye.sh` über das Terminal ein.
5559
```shell
5660
git add goodbye.sh
5761
git commit -m "Add goodbye script"
5862
git push
5963
```
6064

61-
## Creating an action metadata file
65+
## Eine Datei für die Metadaten der Aktion erstellen
6266

63-
1. In the `hello-world-composite-action` repository, create a new file called `action.yml` and add the following example code. For more information about this syntax, see "[`runs` for a composite actions](/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-composite-actions)".
67+
1. Erstelle im Repository `hello-world-composite-action` eine neue Datei namens `action.yml`, und füge den folgenden Beispielcode hinzu. Weitere Informationen zu dieser Syntax findest du unter [`runs` für eine zusammengesetzte Aktion](/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-composite-actions).
6468

65-
{% raw %}
66-
**action.yml**
69+
{% raw %} **action.yml**
6770
```yaml
6871
name: 'Hello World'
6972
description: 'Greet someone'
@@ -93,33 +96,32 @@ Before you begin, you'll create a repository on {% ifversion ghae %}{% data vari
9396
- run: goodbye.sh
9497
shell: bash
9598
```
96-
{% endraw %}
97-
This file defines the `who-to-greet` input, maps the random generated number to the `random-number` output variable, adds the action's path to the runner system path (to locate the `goodbye.sh` script during execution), and runs the `goodbye.sh` script.
99+
{% endraw %} Diese Datei definiert die `who-to-greet`-Eingabe, ordnet die zufällig generierte Zahl der Ausgabevariablen `random-number` zu, fügt den Pfad der Aktion zum Systempfad des Runners hinzu (um das Skript `goodbye.sh` während der Ausführung ausfindig zu machen) und führt das Skript `goodbye.sh` aus.
98100

99-
For more information about managing outputs, see "[`outputs` for a composite action](/actions/creating-actions/metadata-syntax-for-github-actions#outputs-for-composite-actions)".
101+
Weitere Informationen zum Verwalten von Ausgaben findest du unter [`outputs` für eine zusammengesetzte Aktion](/actions/creating-actions/metadata-syntax-for-github-actions#outputs-for-composite-actions).
100102

101-
For more information about how to use `github.action_path`, see "[`github context`](/actions/reference/context-and-expression-syntax-for-github-actions#github-context)".
103+
Weitere Informationen zum Verwenden von `github.action_path` findest du unter [`github context`](/actions/reference/context-and-expression-syntax-for-github-actions#github-context).
102104

103-
1. From your terminal, check in your `action.yml` file.
105+
1. Checke die Datei `action.yml` über das Terminal ein.
104106

105107
```shell
106108
git add action.yml
107109
git commit -m "Add action"
108110
git push
109111
```
110112

111-
1. From your terminal, add a tag. This example uses a tag called `v1`. For more information, see "[About actions](/actions/creating-actions/about-actions#using-release-management-for-actions)."
113+
1. Füge über das Terminal ein Tag hinzu. In diesem Beispiel wird ein Tag namens `v1` verwendet. Weitere Informationen findest du unter [Informationen zu Aktionen](/actions/creating-actions/about-actions#using-release-management-for-actions).
112114

113115
```shell
114116
git tag -a -m "Description of this release" v1
115117
git push --follow-tags
116118
```
117119

118-
## Testing out your action in a workflow
120+
## Deine Aktion in einem Workflow testen
119121

120-
The following workflow code uses the completed hello world action that you made in "[Creating an action metadata file](/actions/creating-actions/creating-a-composite-action#creating-an-action-metadata-file)".
122+
Der folgende Workflowcode verwendet die abgeschlossene „Hello World“-Aktion, die du unter [Erstellen einer Aktionsmetadatendatei](/actions/creating-actions/creating-a-composite-action#creating-an-action-metadata-file) erstellt hast.
121123

122-
Copy the workflow code into a `.github/workflows/main.yml` file in another repository, but replace `actions/hello-world-composite-action@v1` with the repository and tag you created. You can also replace the `who-to-greet` input with your name.
124+
Kopiere den Workflowcode in eine Datei `.github/workflows/main.yml` in einem anderen Repository, aber ersetze `actions/hello-world-composite-action@v1` durch das von dir erstellte Repository und Tag. Du kannst auch die Eingabe für `who-to-greet` durch deinen Namen ersetzen.
123125

124126
**.github/workflows/main.yml**
125127
```yaml
@@ -139,4 +141,4 @@ jobs:
139141
shell: bash
140142
```
141143

142-
From your repository, click the **Actions** tab, and select the latest workflow run. The output should include: "Hello Mona the Octocat", the result of the "Goodbye" script, and a random number.
144+
Klicke in deinem Repository auf die Registerkarte **Aktionen**, und wähle die neueste Workflowausführung aus. Die Ausgabe sollte Folgendes enthalten: Hello Mona the Octocat“, das Ergebnis des Skripts „Goodbye“ und eine zufällige Zahl.

0 commit comments

Comments
 (0)