Skip to content

Commit

Permalink
2.1 wip
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndresCortes committed Jul 3, 2024
1 parent 40d5d65 commit 8fd1b96
Show file tree
Hide file tree
Showing 477 changed files with 32,843 additions and 8,537 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: [smftricks]
custom: ["https://www.paypal.me/smftricks"]
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
contact_links:
- name: SMF Support Topic
url: https://www.simplemachines.org/community/index.php?topic=583206.0
about: This is the main support topic from the official SMF community.
- name: SMF Tricks Support
url: https://smftricks.com/index.php?topic=1040.0
about: This is the support topic from the SMF Tricks support boards.
53 changes: 53 additions & 0 deletions .github/ISSUE_TEMPLATE/standard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Bug Report
description: Create a regular bug report
labels: ["Pending Review"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report, please describe the issue and provide as much information as possible.
- type: textarea
id: basic
attributes:
label: Basic Information
description: What is the issue?
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps to reproduce
description: Describe all steps needed to recreate the issue.
value: |
1.
- type: textarea
id: expected
attributes:
label: Expected result
description: What should be the result of following those steps?
- type: textarea
id: actual
attributes:
label: Actual result
description: What actually happens when you follow those steps?
- type: input
id: version
attributes:
label: Version/Git revision
description: What is the Theme version you are using? (You can find this info in the 'Theme Information' tab in Theme Settings)
validations:
required: true
- type: input
id: phpversion
attributes:
label: PHP Version
description: Your PHP version
placeholder: '8.0.0'
validations:
required: true
- type: textarea
id: logs
attributes:
label: Logs
description: Add any additional logs that may be useful, such as PHP error logs, SMF error logs, Database logs, Web Server logs
render: shell
72 changes: 72 additions & 0 deletions .github/workflows/theme-customs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Sync Theme Customs

on:
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
inputs:
main_repo_branch:
description: 'Theme Customs'
default: 'for2.1'

jobs:
sync:
runs-on: ubuntu-latest

steps:

- name: Checkout current repository
uses: actions/checkout@v2

- name: List files in the environment
run: |
ls -la $GITHUB_WORKSPACE
- name: Create temporary directory
run: |
mkdir temp_clone
- name: Clone main-repo
uses: actions/checkout@v2
with:
repository: SMFTricks/Theme-Customs
ref: ${{ github.event.inputs.main_repo_branch }}
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
path: temp_clone

- name: Copy main-repo contents to new directory
run: |
rsync -av --exclude='.git' --exclude=".github" --exclude="crowdin.yml" --exclude="README.md" --exclude='.gitignore' --delete-before --ignore-times temp_clone/ $GITHUB_WORKSPACE/_theme-customs
- name: Verify GitHub Workspace Contents
run: ls -la $GITHUB_WORKSPACE

- name: Clean up temporary directory
run: |
rm -rf temp_clone
- name: Move contents to root
run: |
rsync -av --remove-source-files $GITHUB_WORKSPACE/_theme-customs/ $GITHUB_WORKSPACE/
rm -r $GITHUB_WORKSPACE/_theme-customs
- name: Set up Git
run: |
git config --global user.name "DiegoAndresCortes"
git config --global user.email "[email protected]"
- name: Add changes to Git staging area
run: |
git status
- name: Add changes to Git staging area
run: |
git add .
- name: Commit changes
run: |
git commit -m "Update Theme-Customs" -m "Signed-off-by: Diego Andrés <[email protected]>" || true
- name: Push changes to origin
run: |
git push origin HEAD
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
package-lock.json
css/custom/custom_edits.css
.DS_Store
.AppleDouble
.LSOverride
Loading

0 comments on commit 8fd1b96

Please sign in to comment.