You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository provides a collection of **Visual Studio Code snippets** for **GitHub Actions** and **GitHub Actions Workflows**. These snippets simplify the process of writing, editing, and managing **GitHub Actions YAML files**, ensuring correctness and completeness with predefined property selections.
4
+
5
+
## 🚀 Features
6
+
7
+
-**Predefined GitHub Action Templates** for Composite, Docker, and Node.js Actions.
8
+
-**Workflow Boilerplate** to quickly set up CI/CD pipelines.
9
+
-**Environment Variables** to insert commonly used GitHub Actions context values.
10
+
-**Comprehensive Properties** for branding, inputs, outputs, and steps.
11
+
-**Auto-completion and Selection Options** for colors, icons, and OS environments.
12
+
-**Error-Free YAML Formatting** for valid and structured configurations.
13
+
14
+
## 📌 Installation
15
+
16
+
1. Open **Visual Studio Code**.
17
+
2. Go to **User Snippets**:
18
+
- Press `Ctrl + Shift + P` (Windows/Linux) or `Cmd + Shift + P` (Mac) and search for **"Configure User Snippets"**.
19
+
3. Select **YAML (`.yaml`)** or **GitHub Actions (`.github/workflows/*.yml`)**.
20
+
4. Copy and paste the snippets into the selected file.
21
+
5. Save and start using the snippets in your GitHub Actions workflows!
22
+
23
+
## 🔥 Available Snippets
24
+
25
+
### 1️⃣ GitHub Actions - Branding
26
+
27
+
-**Prefix:**`gha-action-branding`
28
+
-**Description:** Inserts branding details for a custom GitHub Action.
29
+
-**Properties:**`color`, `icon` (predefined values for easy selection).
30
+
31
+
### 2️⃣ GitHub Actions - Common Environment Variables
32
+
33
+
-**Prefix:**`gha-action-step-env`
34
+
-**Description:** Inserts commonly used GitHub Actions step environment variables.
0 commit comments