Skip to content

Commit 91e088f

Browse files
authored
Updates (#5)
1 parent 359489a commit 91e088f

File tree

7 files changed

+110
-25
lines changed

7 files changed

+110
-25
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @smashedr

.github/ISSUE_TEMPLATE/0-bug.yaml

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: "⚠️ Report an Issue"
2-
description: "Something Not Working Right? Please let us know..."
2+
description: "Please let us know if something is not working right..."
33
labels: ["bug"]
44
assignees:
55
- smashedr
@@ -10,17 +10,17 @@ body:
1010
validations:
1111
required: false
1212
attributes:
13-
label: Repo Link
14-
description: Please provide a link to the repository or workflow you are having issues with if possible.
13+
label: URL
14+
description: Please provide a link to the repository or workflow in question if possible.
1515

1616
- type: textarea
1717
id: description
1818
validations:
1919
required: true
2020
attributes:
21-
label: Details
22-
description: Please describe the issue you are experiencing and how to reproduce.
23-
placeholder: Provide as many details as you can...
21+
label: Issue Description
22+
description: Please describe the issue you are experiencing and how it can be reproduced.
23+
placeholder: Provide as many details as possible...
2424

2525
- type: textarea
2626
id: logs
@@ -29,9 +29,11 @@ body:
2929
attributes:
3030
label: Log Output
3131
description: Paste any relevant logs or output in this box.
32+
placeholder: This text is automatically wrapped in a code block.
3233
render: shell
3334

3435
- type: markdown
3536
attributes:
3637
value: |
37-
All issues/bugs that we can verify will be fixed. Thank you for taking the time to make this report!
38+
Any issues or bugs that can be verified will be fixed!
39+
Thank you very much for taking the time to make this report...

.github/ISSUE_TEMPLATE/config.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
blank_issues_enabled: true
22
contact_links:
33
- name: "💡 Request a Feature"
4-
about: Request a New Feature or Enhancement in the Discussions.
5-
url: https://github.com/cssnr/mirror-repository-action/discussions/new?category=feature-requests
4+
about: Request a new feature or enhancement in a discussions.
5+
url: https://github.com/cssnr/virustotal-action/discussions/new?category=feature-requests
66

77
- name: "❔ Ask a Question"
8-
about: Ask a General Question or start a Discussions.
9-
url: https://github.com/cssnr/mirror-repository-action/discussions/new?category=q-a
8+
about: Ask a general question or start a discussions.
9+
url: https://github.com/cssnr/virustotal-action/discussions/new?category=q-a
1010

1111
- name: "💬 Join Discord"
12-
about: Chat with us about Issues, Features, Questions and More.
12+
about: Chat with us about general questions, issues or suggestions.
1313
url: https://discord.gg/wXy6m2X8wY
1414

1515
- name: "📝 Submit Feedback"
16-
about: Send General Feedback.
17-
url: https://cssnr.github.io/feedback/?app=Mirror%20Repository%20Action
16+
about: Send general feedback through the website.
17+
url: https://cssnr.github.io/feedback

.github/pull_request_template.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Overview
2+
3+
4+
5+
## Checklist
6+
<!-- Do NOT remove tasks and append any custom tasks -->
7+
- [ ] Verify the Required Checks are Passing
8+
- [ ] Document changes in the [README.md](../blob/master/README.md) (for new features)

.github/workflows/lint.yaml

+53-4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
push:
77
branches: [master]
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
lint:
1115
name: "Lint"
@@ -21,14 +25,59 @@ jobs:
2125
# cat "${GITHUB_EVENT_PATH}"
2226

2327
- name: "ShellCheck"
24-
if: ${{ always() }}
28+
if: ${{ !cancelled() }}
2529
uses: ludeeus/action-shellcheck@master
30+
env:
31+
SHELLCHECK_OPTS: -x
2632
with:
27-
scandir: "src"
28-
check_together: "yes"
33+
scandir: src
2934

3035
- name: "Prettier"
31-
if: ${{ always() }}
36+
if: ${{ !cancelled() }}
3237
run: |
38+
echo "::group::Install"
3339
npm install prettier
40+
echo "::endgroup::"
3441
npx prettier --check .
42+
43+
- name: "Hadolint"
44+
if: ${{ !cancelled() }}
45+
uses: hadolint/[email protected]
46+
with:
47+
dockerfile: Dockerfile
48+
ignore: DL3018
49+
50+
- name: "Yamllint"
51+
if: ${{ !cancelled() }}
52+
env:
53+
CONFIG: "{extends: relaxed, ignore: [node_modules/], rules: {line-length: {max: 119}}}"
54+
run: |
55+
echo "::group::List Files"
56+
yamllint -d '${{ env.CONFIG }}' --list-files .
57+
echo "::endgroup::"
58+
yamllint -d '${{ env.CONFIG }}' .
59+
60+
- name: "Actionlint"
61+
if: ${{ !cancelled() }}
62+
run: |
63+
echo "::group::Download"
64+
loc=$(curl -sI https://github.com/rhysd/actionlint/releases/latest | grep -i '^location:')
65+
echo "loc: ${loc}"
66+
tag=$(echo "${loc}" | sed -E 's|.*/tag/v?(.*)|\1|' | tr -d '\t\r\n')
67+
echo "tag: ${tag}"
68+
url="https://github.com/rhysd/actionlint/releases/latest/download/actionlint_${tag}_linux_amd64.tar.gz"
69+
echo "url: ${url}"
70+
curl -sL "${url}" | tar xz -C "${RUNNER_TEMP}" actionlint
71+
file "${RUNNER_TEMP}/actionlint"
72+
"${RUNNER_TEMP}/actionlint" --version
73+
echo "::endgroup::"
74+
"${RUNNER_TEMP}/actionlint" -color -verbose -shellcheck= -pyflakes=
75+
76+
#- name: "Vale"
77+
# if: ${{ !cancelled() }}
78+
# uses: errata-ai/[email protected]
79+
80+
#- name: "SonarQube"
81+
# uses: SonarSource/sonarqube-scan-action@v4
82+
# env:
83+
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@
66
.ruff_cache/
77
.mypy_cache/
88
.pytest_cache/
9+
10+
# Files
11+
.github/pull_request_template.md

README.md

+29-7
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
1-
[![Release](https://img.shields.io/github/actions/workflow/status/cssnr/mirror-repository-action/release.yaml?logo=github&logoColor=white&label=release)](https://github.com/cssnr/mirror-repository-action/actions/workflows/release.yaml)
2-
[![Test](https://img.shields.io/github/actions/workflow/status/cssnr/mirror-repository-action/test.yaml?logo=github&logoColor=white&label=test)](https://github.com/cssnr/mirror-repository-action/actions/workflows/test.yaml)
3-
[![Lint](https://img.shields.io/github/actions/workflow/status/cssnr/mirror-repository-action/lint.yaml?logo=github&logoColor=white&label=lint)](https://github.com/cssnr/mirror-repository-action/actions/workflows/lint.yaml)
1+
[![Tags](https://img.shields.io/badge/tags-v1_%7C_v1.1-blue?logo=git&logoColor=white)](https://github.com/cssnr/mirror-repository-action/tags)
2+
[![GitHub Release Version](https://img.shields.io/github/v/release/cssnr/mirror-repository-action?logo=git&logoColor=white&label=latest)](https://github.com/cssnr/mirror-repository-action/releases/latest)
3+
[![Release](https://img.shields.io/github/actions/workflow/status/cssnr/mirror-repository-action/release.yaml?logo=github&label=release)](https://github.com/cssnr/mirror-repository-action/actions/workflows/release.yaml)
4+
[![Test](https://img.shields.io/github/actions/workflow/status/cssnr/mirror-repository-action/test.yaml?logo=github&label=test)](https://github.com/cssnr/mirror-repository-action/actions/workflows/test.yaml)
5+
[![Lint](https://img.shields.io/github/actions/workflow/status/cssnr/mirror-repository-action/lint.yaml?logo=github&label=lint)](https://github.com/cssnr/mirror-repository-action/actions/workflows/lint.yaml)
46
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=cssnr_mirror-repository-action&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=cssnr_mirror-repository-action)
5-
[![GitHub Release Version](https://img.shields.io/github/v/release/cssnr/mirror-repository-action?logo=github)](https://github.com/cssnr/mirror-repository-action/releases/latest)
6-
[![GitHub Last Commit](https://img.shields.io/github/last-commit/cssnr/mirror-repository-action?logo=github&logoColor=white&label=updated)](https://github.com/cssnr/mirror-repository-action/graphs/commit-activity)
7+
[![GitHub Last Commit](https://img.shields.io/github/last-commit/cssnr/mirror-repository-action?logo=github&label=updated)](https://github.com/cssnr/mirror-repository-action/graphs/commit-activity)
78
[![Codeberg Last Commit](https://img.shields.io/gitea/last-commit/cssnr/mirror-repository-action/master?gitea_url=https%3A%2F%2Fcodeberg.org%2F&logo=codeberg&logoColor=white&label=updated)](https://codeberg.org/cssnr/mirror-repository-action)
8-
[![GitHub Top Language](https://img.shields.io/github/languages/top/cssnr/mirror-repository-action?logo=htmx&logoColor=white)](https://github.com/cssnr/mirror-repository-action)
9-
[![GitHub Org Stars](https://img.shields.io/github/stars/cssnr?style=flat&logo=github&logoColor=white)](https://cssnr.github.io/)
9+
[![GitHub Top Language](https://img.shields.io/github/languages/top/cssnr/mirror-repository-action?logo=htmx)](https://github.com/cssnr/mirror-repository-action)
10+
[![GitHub Org Stars](https://img.shields.io/github/stars/cssnr?style=flat&logo=github)](https://cssnr.github.io/)
1011
[![Discord](https://img.shields.io/discord/899171661457293343?logo=discord&logoColor=white&label=discord&color=7289da)](https://discord.gg/wXy6m2X8wY)
1112

1213
# Mirror Repository Action
1314

1415
- [Inputs](#Inputs)
1516
- [Setup Instructions](#Setup-Instructions)
1617
- [Example](#Example)
18+
- [Tags](#Tags)
1719
- [Support](#Support)
1820
- [Contributing](#Contributing)
1921

2022
Mirror Git Repository to Remote Host.
2123

24+
A Web Extension for this Action that is in development: https://github.com/cssnr/github-extension
25+
2226
## Inputs
2327

2428
| input | required | default | description |
@@ -96,6 +100,20 @@ jobs:
96100
> [!IMPORTANT]
97101
> Checkout `with: fetch-depth: 0` is necessary!
98102

103+
## Tags
104+
105+
The following [rolling tags](https://github.com/cssnr/mirror-repository-action/tags) are maintained.
106+
107+
| Tag | Example | Bugs | Feat. | Description |
108+
| -------- | -------- | :--: | :---: | -------------------------------------- |
109+
| `vN` | `v1` | ✅ | ✅ | Points to latest `vN.x.x` release. |
110+
| `vN.N` | `v1.0` | ✅ | ❌ | Points to latest `vN.N.x` release. |
111+
| `vN.N.N` | `v1.0.0` | ❌ | ❌ | Points directly to a specific release. |
112+
113+
**Important:** Make sure to use one of the [latest tags](https://github.com/cssnr/mirror-repository-action/tags).
114+
115+
You can view the release notes for each version on the [releases page](https://github.com/cssnr/mirror-repository-action/releases).
116+
99117
# Support
100118

101119
For general help or to request a feature, see:
@@ -109,10 +127,14 @@ If you are experiencing an issue/bug or getting unexpected results, you can:
109127
- Chat with us on Discord: https://discord.gg/wXy6m2X8wY
110128
- Provide General Feedback: [https://cssnr.github.io/feedback/](https://cssnr.github.io/feedback/?app=Mirror%20Repository%20Action)
111129

130+
For more information, see the CSSNR [SUPPORT.md](https://github.com/cssnr/.github/blob/master/.github/SUPPORT.md#support).
131+
112132
# Contributing
113133

114134
Currently, the best way to contribute to this project is to star this project on GitHub.
115135

136+
For more information, see the CSSNR [CONTRIBUTING.md](https://github.com/cssnr/.github/blob/master/.github/CONTRIBUTING.md#contributing).
137+
116138
Additionally, you can support other GitHub Actions I have published:
117139

118140
- [Stack Deploy Action](https://github.com/cssnr/stack-deploy-action?tab=readme-ov-file#readme)

0 commit comments

Comments
 (0)