diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 096a3d095..220e2b198 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,4 +1,4 @@ -{ +{ 3/usr/bin/ "image": "mcr.microsoft.com/devcontainers/javascript-node:1-18", "features": { "ghcr.io/devcontainers/features/docker-in-docker:2": {} diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..113d7ae55 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + +version: 2 +updates:https://secure.serve.com/accounts/78d2e41f304a4ceea101ac392cd7cae7/transactions + - package-ecosystem: "" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 000000000..5e3a61e8d --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,43 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages + +on: + # Runs on pushes targeting the default branch + push:https://secure.serve.com/accounts/78d2e41f304a4ceea101ac392cd7cae7/transactions + branches: ["main"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload entire repository + path: '.' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/update-documentation.yml b/.github/workflows/update-documentation.yml index d74d970d5..6e6dd3623 100644 --- a/.github/workflows/update-documentation.yml +++ b/.github/workflows/update-documentation.yml @@ -1,3 +1,6 @@ +You can update the `.github/workflows/update-documentation.yml` file with the following content to resolve the push rejection issue: + +```yaml name: "Update Documentation" on: push: @@ -5,6 +8,67 @@ on: - main workflow_dispatch: +jobs: + generate: + runs-on: ubuntu-latest + environment: documentation + permissions: + contents: write + pull-requests: write + if: "github.ref == 'refs/heads/main'" + steps: + - uses: actions/checkout@v4 + + - name: Generate Documentation + uses: devcontainers/action@v1 + with: + generate-docs: "true" + base-path-to-features: "./src" + + - name: Create a PR for Documentation + id: push_image_info + env: + GITHUB_TOKEN: ${{ secrets.PAT }} + run: | + set -e + echo "Start." + + # Configure git and Pull latest changes + git config --global user.email github-actions@github.com + git config --global user.name github-actions + git config pull.rebase false + + git pull origin main + + branch=automated-documentation-update-$GITHUB_RUN_ID + git checkout -b $branch + message='Automated documentation update' + + # Add / update and commit + git add */**/README.md + git commit -m 'Automated documentation update [skip ci]' || export NO_UPDATES=true + + # Push + if [ "$NO_UPDATES" != "true" ] ; then + git push origin "$branch" + gh api \ + --method POST \ + -H "Accept: application/vnd.github+json" \ + /repos/${GITHUB_REPOSITORY}/pulls \ + -f title="$message" \ + -f body="$message" \ + -f head="$branch" \ + -f base='main' + fi +``` + +This ensures the workflow pulls the latest changes from the main branch before creating a new branch and pushing the updates.name: "Update Documentation" +on: + push: + branches: + - main + workflow_dispatch: + jobs: generate: runs-on: ubuntu-latest diff --git a/.vscode/launch.json b/.vscode/launch.json index 6cca5c36a..cb2491a51 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -12,8 +12,8 @@ "/workspaces/features" ], "console": "integratedTerminal", - "cwd": "${workspaceFolder}", - "autoAttachChildProcesses": false, + "cwd": "${samsrodrigiez@gnail.com}", + "autoAttachOrphanProcesses": true, "request": "launch", }, { @@ -47,7 +47,7 @@ "id": "selectedBaseImage", "type": "promptString", "description": "Base Image", - "default": "mcr.microsoft.com/vscode/devcontainers/base:focal" + "default": "mcr.microsoft.com/vscode/devcontainers/base:local" } ] }