Skip to content

Commit f62d234

Browse files
authored
Merge pull request #327 from ActionsDesk/ncalteen/restructure
Restructure Action Repository
2 parents 7c68be8 + 2a534d6 commit f62d234

Some content is hidden

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

57 files changed

+54858
-6781
lines changed

.editorconfig

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

.env.example

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# dotenv-linter:off IncorrectDelimiter
2+
3+
# Do not commit your actual .env file to Git! This may contain secrets or other
4+
# private information.
5+
6+
# Enable/disable step debug logging (default: `false`). For local debugging, it
7+
# may be useful to set it to `true`.
8+
ACTIONS_STEP_DEBUG=true
9+
10+
# GitHub Actions inputs should follow `INPUT_<name>` format (case-sensitive).
11+
# Hyphens should not be converted to underscores!
12+
INPUT_ENTERPRISE_SLUG="my-example-enterprise"
13+
INPUT_ENTERPRISE_TOKEN="MY_EXAMPLE_TOKEN"
14+
INPUT_GITHUB_TOKEN="MY_EXAMPLE_TOKEN"
15+
INPUT_ISSUE_TITLE="My Issue Title"
16+
17+
# GitHub Actions default environment variables. These are set for every run of a
18+
# workflow and can be used in your actions. Setting the value here will override
19+
# any value set by the local-action tool.
20+
# https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
21+
22+
# CI="true"
23+
# GITHUB_ACTION=""
24+
# GITHUB_ACTION_PATH=""
25+
# GITHUB_ACTION_REPOSITORY=""
26+
# GITHUB_ACTIONS=""
27+
# GITHUB_ACTOR=""
28+
# GITHUB_ACTOR_ID=""
29+
# GITHUB_API_URL=""
30+
# GITHUB_BASE_REF=""
31+
# GITHUB_ENV=""
32+
# GITHUB_EVENT_NAME=""
33+
# GITHUB_EVENT_PATH=""
34+
# GITHUB_GRAPHQL_URL=""
35+
# GITHUB_HEAD_REF=""
36+
# GITHUB_JOB=""
37+
# GITHUB_OUTPUT=""
38+
# GITHUB_PATH=""
39+
# GITHUB_REF=""
40+
# GITHUB_REF_NAME=""
41+
# GITHUB_REF_PROTECTED=""
42+
# GITHUB_REF_TYPE=""
43+
# GITHUB_REPOSITORY=""
44+
# GITHUB_REPOSITORY_ID=""
45+
# GITHUB_REPOSITORY_OWNER=""
46+
# GITHUB_REPOSITORY_OWNER_ID=""
47+
# GITHUB_RETENTION_DAYS=""
48+
# GITHUB_RUN_ATTEMPT=""
49+
# GITHUB_RUN_ID=""
50+
# GITHUB_RUN_NUMBER=""
51+
# GITHUB_SERVER_URL=""
52+
# GITHUB_SHA=""
53+
# GITHUB_STEP_SUMMARY=""
54+
# GITHUB_TRIGGERING_ACTOR=""
55+
# GITHUB_WORKFLOW=""
56+
# GITHUB_WORKFLOW_REF=""
57+
# GITHUB_WORKFLOW_SHA=""
58+
# GITHUB_WORKSPACE=""
59+
# RUNNER_ARCH=""
60+
# RUNNER_DEBUG=""
61+
# RUNNER_NAME=""
62+
# RUNNER_OS=""
63+
# RUNNER_TEMP=""
64+
# RUNNER_TOOL_CACHE=""

.eslintignore

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

.eslintrc.json

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

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
* text=auto eol=lf
2+
13
dist/** -diff linguist-generated=true

.github/codeql/codeql-config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: CodeQL Configuration
2+
3+
paths-ignore:
4+
- node_modules
5+
- dist

.github/dependabot.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
11
version: 2
22
updates:
3-
# Enable version updates for npm
4-
- package-ecosystem: 'npm'
5-
# Look for `package.json` and `lock` files in the `root` directory
6-
directory: '/'
7-
# Check the npm registry for updates every day (weekdays)
3+
- package-ecosystem: github-actions
4+
directory: /
85
schedule:
9-
interval: 'daily'
6+
interval: weekly
7+
groups:
8+
actions-minor:
9+
update-types:
10+
- minor
11+
- patch
12+
13+
- package-ecosystem: npm
14+
directory: /
15+
schedule:
16+
interval: weekly
17+
groups:
18+
npm-development:
19+
dependency-type: development
20+
update-types:
21+
- minor
22+
- patch
23+
npm-production:
24+
dependency-type: production
25+
update-types:
26+
- patch

.github/workflows/check-dist.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# In TypeScript actions, `dist/` is a special directory. When you reference
2+
# an action with the `uses:` property, `dist/index.js` is the code that will be
3+
# run. For this project, the `dist/index.js` file is transpiled from other
4+
# source files. This workflow ensures the `dist/` directory contains the
5+
# expected transpiled code.
6+
#
7+
# If this workflow is run from a feature branch, it will act as an additional CI
8+
# check and fail if the checked-in `dist/` directory does not match what is
9+
# expected from the build.
10+
name: Check Transpiled JavaScript
11+
12+
on:
13+
pull_request:
14+
branches:
15+
- main
16+
push:
17+
branches:
18+
- main
19+
20+
permissions:
21+
contents: read
22+
23+
jobs:
24+
check-dist:
25+
name: Check dist/
26+
runs-on: ubuntu-latest
27+
28+
steps:
29+
- name: Checkout
30+
id: checkout
31+
uses: actions/checkout@v4
32+
33+
- name: Setup Node.js
34+
id: setup-node
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version-file: .node-version
38+
cache: npm
39+
40+
- name: Install Dependencies
41+
id: install
42+
run: npm ci
43+
44+
- name: Build dist/ Directory
45+
id: build
46+
run: npm run bundle
47+
48+
# This will fail the workflow if the `dist/` directory is different than
49+
# expected.
50+
- name: Compare Directories
51+
id: diff
52+
run: |
53+
if [ ! -d dist/ ]; then
54+
echo "Expected dist/ directory does not exist. See status below:"
55+
ls -la ./
56+
exit 1
57+
fi
58+
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
59+
echo "Detected uncommitted changes after build. See status below:"
60+
git diff --ignore-space-at-eol --text dist/
61+
exit 1
62+
fi
63+
64+
# If `dist/` was different than expected, upload the expected version as a
65+
# workflow artifact.
66+
- if: ${{ failure() && steps.diff.outcome == 'failure' }}
67+
name: Upload Artifact
68+
id: upload
69+
uses: actions/upload-artifact@v4
70+
with:
71+
name: dist
72+
path: dist/
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Continuous Delivery
2+
3+
on:
4+
pull_request:
5+
types:
6+
- closed
7+
branches:
8+
- main
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: write
13+
14+
jobs:
15+
release:
16+
name: Release Version
17+
runs-on: ubuntu-latest
18+
19+
if: |
20+
github.event_name == 'workflow_dispatch' ||
21+
(github.event.pull_request.merged == true &&
22+
startsWith(github.head_ref, 'dependabot/') == false)
23+
24+
steps:
25+
- name: Checkout
26+
id: checkout
27+
uses: actions/checkout@v4
28+
with:
29+
fetch-tags: true
30+
31+
- name: Tag
32+
id: tag
33+
uses: issue-ops/semver@v2
34+
with:
35+
manifest-path: package.json
36+
workspace: ${{ github.workspace }}
37+
ref: main
38+
39+
- name: Create Release
40+
id: release
41+
uses: issue-ops/releaser@v2
42+
with:
43+
tag: v${{ steps.tag.outputs.version }}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Continuous Integration
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
checks: write
11+
contents: read
12+
13+
jobs:
14+
continuous-integration:
15+
name: Continuous Integration
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout
20+
id: checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Node.js
24+
id: setup-node
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version-file: .node-version
28+
cache: npm
29+
30+
- name: Install Dependencies
31+
id: install
32+
run: npm ci
33+
34+
- name: Check Format
35+
id: format-check
36+
run: npm run format:check
37+
38+
- name: Lint
39+
id: lint
40+
run: npm run lint
41+
42+
- name: Test
43+
id: test
44+
run: npm run ci-test

0 commit comments

Comments
 (0)