Skip to content

Commit 1b9e11e

Browse files
committed
Create action.yml (#3)
1 parent 7433c05 commit 1b9e11e

1 file changed

Lines changed: 71 additions & 0 deletions

File tree

action.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# =================================================================
2+
#
3+
# Authors: Benjamin Webb <bwebb@lincolninst.edu>
4+
#
5+
# Copyright (c) 2023 Benjamin Webb
6+
#
7+
# Permission is hereby granted, free of charge, to any person
8+
# obtaining a copy of this software and associated documentation
9+
# files (the "Software"), to deal in the Software without
10+
# restriction, including without limitation the rights to use,
11+
# copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
# copies of the Software, and to permit persons to whom the
13+
# Software is furnished to do so, subject to the following
14+
# conditions:
15+
#
16+
# The above copyright notice and this permission notice shall be
17+
# included in all copies or substantial portions of the Software.
18+
#
19+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
21+
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
23+
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
24+
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
26+
# OTHER DEALINGS IN THE SOFTWARE.
27+
#
28+
# =================================================================
29+
30+
name: "Sitemap Generator"
31+
32+
description: "Generate Sitemap in GitHub Actions"
33+
34+
branding:
35+
icon: server
36+
color: purple
37+
38+
inputs:
39+
namespace_dir:
40+
description: "Filepath to load data from"
41+
required: true
42+
default: "./namespaces"
43+
sitemap_dir:
44+
description: "Directory for sitemap output"
45+
required: true
46+
default: "./sitemap"
47+
source_repo:
48+
description: "Source repository"
49+
required: true
50+
default: "geoconnex.us"
51+
source_repo_path:
52+
description: "Filepath to git lastmod from"
53+
required: true
54+
default: "namespaces"
55+
outputs:
56+
sitemap:
57+
description: "Sitemap folder"
58+
runs:
59+
using: "composite"
60+
steps:
61+
- uses: actions/checkout@v3
62+
with:
63+
repository: cgs-earth/sitemap-generator
64+
- shell: bash
65+
env:
66+
SOURCE_REPO: ${{ inputs.source_repo }}
67+
SOURCE_REPO_PATH: ${{ inputs.source_repo_path }}
68+
SITEMAP_DIR: ${{ inputs.sitemap_dir }}
69+
run: |
70+
pip3 install git+https://github.com/cgs-earth/sitemap-generator.git
71+
sitemap-generator run ${{ inputs.namespace_dir }}

0 commit comments

Comments
 (0)