From 65964f7b07d55eb6b4cc2075f8a9f05714c10023 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Mon, 21 Oct 2024 13:20:41 -0400 Subject: [PATCH] Initial Action --- README.md | 7 +++++++ action.yml | 24 ++++++++++++++++++++++++ package.json | 14 ++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 action.yml create mode 100644 package.json diff --git a/README.md b/README.md index 2bab767..1070e27 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,9 @@ # fancy-checkout Git checkout action with all the tags + +Simple action to checkout, mark safe and grab tags from your repo. + +``` + -name: Fancy Checkout + uses: sithlord48/fancy-checkout@v1.0.0 +``` diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..71a0142 --- /dev/null +++ b/action.yml @@ -0,0 +1,24 @@ +# SPDX-FileCopyrightText: 2024 Chris Rizzitello +# SPDX-License-Identifier: MIT + +name: "Fancy Checkout" +author: "@sithlord48" +description: "Checkout a repo with all the tags in one step" +branding: + icon: 'check' + color: 'green' + +runs: + using: "composite" + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Fetch tags + run: | + git config --global --add safe.directory $GITHUB_WORKSPACE + git fetch --tags --force + shell: bash diff --git a/package.json b/package.json new file mode 100644 index 0000000..5c0d63f --- /dev/null +++ b/package.json @@ -0,0 +1,14 @@ +{ + "name": "fancy-checkout", + "version": "1.0.0", + "description": "Checkout a repo with all the tags in one step", + "main": "action.yml", + "keywords": [], + "author": "sithlord48", + "license": "MIT", + "dependencies": { + "@actions/core": "^1.10.0", + "@actions/checkout": "^4", + }, + "type": "composite" +}