-
Notifications
You must be signed in to change notification settings - Fork 462
pu #1249
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not valid Dependabot schema. Or even valid YAML. |
||
- package-ecosystem: "" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not valid GitHub workflow schema. Or even valid YAML. |
||
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 |
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: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this output from ChatGPT or some other generative AI tool that you copied and pasted into this? |
||
|
||
```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 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,8 @@ | |
"/workspaces/features" | ||
], | ||
"console": "integratedTerminal", | ||
"cwd": "${workspaceFolder}", | ||
"autoAttachChildProcesses": false, | ||
"cwd": "${[email protected]}", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is there an email in here? |
||
"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" | ||
} | ||
] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not valid dev container schema. Or even valid JSON.