Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pu #1249

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

pu #1249

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -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": {}
Expand Down
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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"
43 changes: 43 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -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
64 changes: 64 additions & 0 deletions .github/workflows/update-documentation.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,74 @@
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:
branches:
- 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 [email protected]
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
Expand Down
6 changes: 3 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"/workspaces/features"
],
"console": "integratedTerminal",
"cwd": "${workspaceFolder}",
"autoAttachChildProcesses": false,
"cwd": "${[email protected]}",
"autoAttachOrphanProcesses": true,
"request": "launch",
},
{
Expand Down Expand Up @@ -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"
}
]
}