Skip to content

Commit 1eccf65

Browse files
authored
Merge branch 'main' into extended_app_description
2 parents 9b0205c + 87a5721 commit 1eccf65

File tree

129 files changed

+100683
-466
lines changed

Some content is hidden

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

129 files changed

+100683
-466
lines changed

.github/workflows/auto-label-bot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: Pandapip1/jekyll-label-action@28a89dbbef321fceaf3cff17f4d29c7a033c3d56
11+
- uses: SudoWeezy/jekyll-label-action@dist
1212
with:
1313
token: ${{ secrets.GITHUB_TOKEN }}
1414
config-path: config/.jekyll-labels.yml

.github/workflows/ci.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
save-pr:
1414
name: Save PR Number
1515
runs-on: ubuntu-latest
16-
16+
1717
steps:
1818
- name: Save PR number
1919
env:
@@ -34,28 +34,28 @@ jobs:
3434
htmlproofer:
3535
name: HTMLProofer
3636
runs-on: ubuntu-latest
37-
37+
3838
steps:
3939
- name: Checkout ARC Repository
4040
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
41-
41+
4242
- name: Install OpenSSL
4343
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev
44-
44+
4545
- name: Install Ruby
4646
uses: ruby/setup-ruby@0a29871fe2b0200a17a4497bae54fe5df0d973aa
4747
with:
4848
ruby-version: 2.6.0
4949
bundler-cache: true
50-
50+
5151
- name: Build Website
5252
run: |
5353
bundle exec jekyll doctor
5454
bundle exec jekyll build
55-
55+
5656
- name: HTML Proofer
5757
run: bundle exec htmlproofer ./_site --check-html --check-opengraph --report-missing-names --log-level=:debug --assume-extension --empty-alt-ignore --timeframe=6w --disable-external
58-
58+
5959
- name: DNS Validator
6060
run: bundle exec github-pages health-check
6161

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Create Dev Portal Content
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Trigger on changes to the main branch
7+
paths:
8+
- "ARCs/**" # Only run when files in the ARCs directory are changed
9+
10+
jobs:
11+
updateDevportal:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
# Step 1: Checkout the repository
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
# Step 2: Set execute permission for the scripts and create the content directory if needed
20+
- name: Make scripts executable
21+
run: |
22+
chmod +x _devportal/scripts/update-arcs.sh
23+
chmod +x _devportal/scripts/update-guideline.sh
24+
chmod +x _devportal/scripts/update-index.sh
25+
mkdir -p _devportal/content
26+
27+
# Step 3: Set up Git identity
28+
- name: Set up Git user
29+
run: |
30+
git config --global user.name 'github-actions'
31+
git config --global user.email '[email protected]'
32+
33+
# Step 4: Run update-arcs.sh script
34+
- name: Run update-arcs.sh
35+
run: _devportal/scripts/update-arcs.sh
36+
37+
# Step 5: Run update-guideline.sh script
38+
- name: Run update-guideline.sh
39+
run: _devportal/scripts/update-guideline.sh
40+
41+
# Step 6: Run update-index.sh script
42+
- name: Run update-index.sh
43+
run: _devportal/scripts/update-index.sh
44+
45+
# Step 7: Force changes to be recognized by Git
46+
- name: Touch modified files
47+
run: |
48+
find _devportal/content -type f -exec touch {} \;
49+
50+
# Step 8: Commit and force push changes to devportal
51+
- name: Commit and force push changes to devportal
52+
run: |
53+
git add -A # Ensure all changes are staged
54+
git add -f _devportal/content/*
55+
git commit -m "Auto-update ARC content and headers"
56+
BRANCH_NAME="devportal"
57+
58+
# Check if the branch exists on the remote
59+
if git ls-remote --exit-code --heads origin "$BRANCH_NAME"; then
60+
echo "Branch $BRANCH_NAME exists on the remote. Force pushing updates."
61+
git push origin main:"$BRANCH_NAME" --force # Corrected force push from main to devportal
62+
else
63+
echo "Branch $BRANCH_NAME does not exist. Creating it and pushing."
64+
git push origin main:"$BRANCH_NAME" --force # Create the branch and force push
65+
fi
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
vendor
22

33
.bundle
4-
_site/*
4+
_site/*
5+
_devportal/content/*.md

ARC-template.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ discussions-to: <URL>
77
status: Draft
88
type: <Standards Track, Meta, or Informational>
99
category (*only required for Standards Track): <Interface, or ARC>
10+
subcategory: <General, Asa, Application, Explorer or Wallet>
1011
created: <date created on, in ISO 8601 (yyyy-mm-dd) format>
1112
requires (*optional): <ARC number(s)>
1213
---
@@ -15,7 +16,7 @@ This is the suggested template for new ARCs.
1516

1617
Note that an ARC number will be assigned by an editor. When opening a pull request to submit your ARC, please use an abbreviated title in the filename, `arc-draft_title_abbrev.md`.
1718

18-
The title should be 44 characters or less. It should not repeat the ARC number in title, irrespective of the category.
19+
The title should be 44 characters or less. It should not repeat the ARC number in title, irrespective of the category.
1920

2021
## Abstract
2122
Abstract is a multi-sentence (short paragraph) technical summary. This should be a very terse and human-readable version of the specification section. Someone should be able to read only the abstract to get the gist of what this specification does.

0 commit comments

Comments
 (0)