Skip to content

Commit 3763a3e

Browse files
authored
migrate: import deno setup into a devcontainer feature from docsify-footer (#1)
this changeset is to move the local feature deno found in docsify-footer plugin into a package so we can start reusing it. - import local feature deno from docsify-footer - import pipeline and repo documentation from feature-setup-bun - format document
1 parent 8edb3bb commit 3763a3e

25 files changed

+203
-696
lines changed

.devcontainer/devcontainer.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
name: "Release dev container features & Generate Documentation"
1+
name: Release
22
on:
33
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
47

58
jobs:
69
deploy:
@@ -13,35 +16,39 @@ jobs:
1316
steps:
1417
- uses: actions/checkout@v4
1518

16-
- name: "Publish Features"
19+
- name: Publish Feature
1720
uses: devcontainers/action@v1
1821
with:
19-
publish-features: "true"
20-
base-path-to-features: "./src"
21-
generate-docs: "true"
22-
22+
base-path-to-features: ./src
23+
publish-features: true
24+
features-namespace: alertbox/denoland
25+
generate-docs: true
26+
disable-repo-tagging: true
2327
env:
2428
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2529

26-
- name: Create PR for Documentation
27-
id: push_image_info
30+
- name: Create PR for Docs
2831
env:
2932
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3033
run: |
3134
set -e
32-
echo "Start."
35+
3336
# Configure git and Push updates
34-
git config --global user.email github-actions[bot]@users.noreply.github.com
35-
git config --global user.name github-actions[bot]
37+
git config --global user.email github-actions@github.com
38+
git config --global user.name github-actions
3639
git config pull.rebase false
37-
branch=automated-documentation-update-$GITHUB_RUN_ID
38-
git checkout -b $branch
39-
message='Automated documentation update'
40+
41+
branch="automated-documentation-update-$GITHUB_RUN_ID"
42+
git checkout -b "$branch"
43+
4044
# Add / update and commit
4145
git add */**/README.md
42-
git commit -m 'Automated documentation update [skip ci]' || export NO_UPDATES=true
46+
git commit -m 'docs: recreate feature README.md [skip ci]' || export NO_UPDATES=true
47+
4348
# Push
44-
if [ "$NO_UPDATES" != "true" ] ; then
45-
git push origin "$branch"
46-
gh pr create --title "$message" --body "$message"
49+
if [ "$NO_UPDATES" != "true" ]; then
50+
message='docs: recreate feature README.md'
51+
description='this changeset is auto-generated via github workflow.'
52+
git push origin "$branch"
53+
gh pr create --title "$message" --body "$description"
4754
fi

.github/workflows/test.yaml

Lines changed: 0 additions & 58 deletions
This file was deleted.

.github/workflows/validate.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Validate
2+
on:
3+
pull_request:
4+
workflow_dispatch:
5+
6+
jobs:
7+
validate:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Validate Configurations
13+
uses: devcontainers/action@v1
14+
with:
15+
validate-only: true
16+
base-path-to-features: ./src
17+
18+
- name: Lint Shell Scripts
19+
uses: azohra/shell-linter@v0.6.0
20+
with:
21+
path: src/**/*.sh
22+
severity: error # [style, info, warning, error]
23+
env:
24+
SHELLCHECK_OPTS: -e SC2072 # Acceptable use of decimal comparison

.github/workflows/validate.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

LICENSE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
MIT License
22

3+
Copyright (c) 2023 The Alertbox, Inc.
4+
Copyright (c) 2022 Kosala (KP) Perera
35
Copyright (c) 2022 Microsoft Corporation
46

57
Permission is hereby granted, free of charge, to any person obtaining a copy

0 commit comments

Comments
 (0)