Skip to content

Commit ea5614c

Browse files
committed
Add Mirror
1 parent 77e6643 commit ea5614c

File tree

2 files changed

+66
-35
lines changed

2 files changed

+66
-35
lines changed

.github/workflows/mirror.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "Mirror"
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: ["published"]
7+
push:
8+
branches: ["**"]
9+
tags: ["**"]
10+
11+
jobs:
12+
mirror:
13+
name: "Mirror"
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 5
16+
17+
steps:
18+
- name: "Checkout"
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: "Mirror to Codeberg"
24+
uses: cssnr/mirror-repository-action@master
25+
with:
26+
host: https://codeberg.org
27+
create: true
28+
username: "shaner"
29+
password: ${{ secrets.CODEBERG_TOKEN }}

README.md

+37-35
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=cssnr_json-key-value-check-action&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=cssnr_json-key-value-check-action)
44
[![GitHub Release Version](https://img.shields.io/github/v/release/cssnr/json-key-value-check-action?logo=github)](https://github.com/cssnr/json-key-value-check-action/releases/latest)
55
[![GitHub Last Commit](https://img.shields.io/github/last-commit/cssnr/json-key-value-check-action?logo=github&logoColor=white&label=updated)](https://github.com/cssnr/json-key-value-check-action/graphs/commit-activity)
6+
[![Codeberg Last Commit](https://img.shields.io/gitea/last-commit/cssnr/json-key-value-check-action/master?gitea_url=https%3A%2F%2Fcodeberg.org%2F&logo=codeberg&logoColor=white&label=updated)](https://codeberg.org/cssnr/json-key-value-check-action)
67
[![GitHub Top Language](https://img.shields.io/github/languages/top/cssnr/json-key-value-check-action?logo=htmx&logoColor=white)](https://github.com/cssnr/json-key-value-check-action)
78
[![GitHub Org Stars](https://img.shields.io/github/stars/cssnr?style=flat&logo=github&logoColor=white)](https://cssnr.github.io/)
89
[![Discord](https://img.shields.io/discord/899171661457293343?logo=discord&logoColor=white&label=discord&color=7289da)](https://discord.gg/wXy6m2X8wY)
@@ -11,10 +12,10 @@
1112

1213
Check that JSON Key's Values Match Provided Values.
1314

14-
* [Inputs](#Inputs)
15-
* [Examples](#Examples)
16-
* [Support](#Support)
17-
* [Contributing](#Contributing)
15+
- [Inputs](#Inputs)
16+
- [Examples](#Examples)
17+
- [Support](#Support)
18+
- [Contributing](#Contributing)
1819

1920
> [!NOTE]
2021
> Please submit
@@ -24,7 +25,7 @@ Check that JSON Key's Values Match Provided Values.
2425
## Inputs
2526

2627
| input | required | default | description |
27-
|-----------|----------|---------|--------------------------------|
28+
| --------- | -------- | ------- | ------------------------------ |
2829
| file | **Yes** | - | JSON File Path to Validate |
2930
| keys | **Yes** | - | Keys to Check, One per Line |
3031
| values | **Yes** | - | Values to Verify, One per Line |
@@ -35,67 +36,68 @@ For multiple `keys` and `values` use new lines with a yaml `|`.
3536
## Examples
3637

3738
```yaml
38-
- name: "Verify JSON"
39+
- name: 'Verify JSON'
3940
uses: cssnr/json-key-value-check-action@v1
4041
with:
41-
file: manifest.json
42-
keys: version
43-
values: ${{ github.ref_name }}
42+
file: manifest.json
43+
keys: version
44+
values: ${{ github.ref_name }}
4445
```
4546
4647
Same as above but also setting an additional key value pair.
4748
4849
```yaml
49-
- name: "Verify JSON"
50+
- name: 'Verify JSON'
5051
uses: cssnr/json-key-value-check-action@v1
5152
with:
52-
file: manifest.json
53-
keys: |
54-
version
55-
version_name
56-
values: |
57-
${{ github.ref_name }}
58-
"Release ${{ github.ref_name }}"
53+
file: manifest.json
54+
keys: |
55+
version
56+
version_name
57+
values: |
58+
${{ github.ref_name }}
59+
"Release ${{ github.ref_name }}"
5960
```
6061
6162
Set a nested key and use file from different directory.
6263
6364
```yaml
64-
- name: "Verify JSON"
65+
- name: 'Verify JSON'
6566
uses: cssnr/json-key-value-check-action@v1
6667
with:
67-
file: src/manifest.json
68-
keys: |
69-
meta.version
70-
values: |
71-
"Release ${{ github.ref_name }}"
68+
file: src/manifest.json
69+
keys: |
70+
meta.version
71+
values: |
72+
"Release ${{ github.ref_name }}"
7273
```
7374
7475
# Support
7576
7677
For general help or to request a feature, see:
7778
78-
- Q&A Discussion: https://github.com/cssnr/json-key-value-check-action/discussions/categories/q-a
79-
- Request a Feature: https://github.com/cssnr/json-key-value-check-action/discussions/categories/feature-requests
79+
- Q&A Discussion: https://github.com/cssnr/json-key-value-check-action/discussions/categories/q-a
80+
- Request a Feature: https://github.com/cssnr/json-key-value-check-action/discussions/categories/feature-requests
8081
8182
If you are experiencing an issue/bug or getting unexpected results, you can:
8283
83-
- Report an Issue: https://github.com/cssnr/json-key-value-check-action/issues
84-
- Chat with us on Discord: https://discord.gg/wXy6m2X8wY
85-
- Provide General
86-
Feedback: [https://cssnr.github.io/feedback/](https://cssnr.github.io/feedback)
84+
- Report an Issue: https://github.com/cssnr/json-key-value-check-action/issues
85+
- Chat with us on Discord: https://discord.gg/wXy6m2X8wY
86+
- Provide General
87+
Feedback: [https://cssnr.github.io/feedback/](https://cssnr.github.io/feedback)
8788
8889
# Contributing
8990
9091
Currently, the best way to contribute to this project is to star this project on GitHub.
9192
9293
Additionally, you can support other GitHub Actions I have published:
9394
94-
- [VirusTotal Action](https://github.com/cssnr/virustotal-action)
95-
- [Update Version Tags Action](https://github.com/cssnr/update-version-tags-action)
96-
- [Update JSON Value Action](https://github.com/cssnr/update-json-value-action)
97-
- [Parse Issue Form Action](https://github.com/cssnr/parse-issue-form-action)
98-
- [Portainer Stack Deploy](https://github.com/cssnr/portainer-stack-deploy-action)
99-
- [Mozilla Addon Update Action](https://github.com/cssnr/mozilla-addon-update-action)
95+
- [VirusTotal Action](https://github.com/cssnr/virustotal-action)
96+
- [Update Version Tags Action](https://github.com/cssnr/update-version-tags-action)
97+
- [Update JSON Value Action](https://github.com/cssnr/update-json-value-action)
98+
- [Parse Issue Form Action](https://github.com/cssnr/parse-issue-form-action)
99+
- [Mirror Repository Action](https://github.com/cssnr/mirror-repository-action)
100+
- [Portainer Stack Deploy](https://github.com/cssnr/portainer-stack-deploy-action)
101+
- [Mozilla Addon Update Action](https://github.com/cssnr/mozilla-addon-update-action)
100102
101103
For a full list of current projects to support visit: [https://cssnr.github.io/](https://cssnr.github.io/)

0 commit comments

Comments
 (0)