-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into users/cory-miller/git…
…-user-and-email
- Loading branch information
Showing
107 changed files
with
41,510 additions
and
68,182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
groups: | ||
minor-npm-dependencies: | ||
# NPM: Only group minor and patch updates (we want to carefully review major updates) | ||
update-types: [minor, patch] | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
groups: | ||
minor-actions-dependencies: | ||
# GitHub Actions: Only group minor and patch updates (we want to carefully review major updates) | ||
update-types: [minor, patch] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,35 @@ | ||
name: Update Main Version | ||
run-name: Move ${{ github.event.inputs.main_version }} to ${{ github.event.inputs.target }} | ||
run-name: Move ${{ github.event.inputs.major_version }} to ${{ github.event.inputs.target }} | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
target: | ||
description: The tag or reference to use | ||
required: true | ||
main_version: | ||
major_version: | ||
type: choice | ||
description: The main version to update | ||
description: The major version to update | ||
options: | ||
- v4 | ||
- v3 | ||
- v2 | ||
|
||
jobs: | ||
tag: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
# Note this update workflow can also be used as a rollback tool. | ||
# For that reason, it's best to pin `actions/checkout` to a known, stable version | ||
# (typically, about two releases back). | ||
- uses: actions/checkout@v4.1.1 | ||
with: | ||
fetch-depth: 0 | ||
- name: Git config | ||
run: | | ||
git config user.name "github-actions[bot]" | ||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
- name: Tag new target | ||
run: git tag -f ${{ github.event.inputs.main_version }} ${{ github.event.inputs.target }} | ||
run: git tag -f ${{ github.event.inputs.major_version }} ${{ github.event.inputs.target }} | ||
- name: Push new tag | ||
run: git push origin ${{ github.event.inputs.main_version }} --force | ||
run: git push origin ${{ github.event.inputs.major_version }} --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Publish test-ubuntu-git Container | ||
|
||
on: | ||
# Use an on demand workflow trigger. | ||
# (Forked copies of actions/checkout won't have permission to update GHCR.io/actions, | ||
# so avoid trigger events that run automatically.) | ||
workflow_dispatch: | ||
inputs: | ||
publish: | ||
description: 'Publish to ghcr.io? (main branch only)' | ||
type: boolean | ||
required: true | ||
default: false | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: actions/test-ubuntu-git | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Use `docker/login-action` to log in to GHCR.io. | ||
# Once published, the packages are scoped to the account defined here. | ||
- name: Log in to the ghcr.io container registry | ||
uses: docker/login-action@v3.1.0 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Format Timestamp | ||
id: timestamp | ||
# Use `date` with a custom format to achieve the key=value format GITHUB_OUTPUT expects. | ||
run: date -u "+now=%Y%m%d.%H%M%S.%3NZ" >> "$GITHUB_OUTPUT" | ||
|
||
- name: Issue Image Publish Warning | ||
if: ${{ inputs.publish && github.ref_name != 'main' }} | ||
run: echo "::warning::test-ubuntu-git images can only be published from the actions/checkout 'main' branch. Workflow will continue with push/publish disabled." | ||
|
||
# Use `docker/build-push-action` to build (and optionally publish) the image. | ||
- name: Build Docker Image (with optional Push) | ||
uses: docker/build-push-action@v5.3.0 | ||
with: | ||
context: . | ||
file: images/test-ubuntu-git.Dockerfile | ||
# For now, attempts to push to ghcr.io must target the `main` branch. | ||
# In the future, consider also allowing attempts from `releases/*` branches. | ||
push: ${{ inputs.publish && github.ref_name == 'main' }} | ||
tags: | | ||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}.${{ steps.timestamp.outputs.now }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...es/npm/@actions/http-client-2.0.1.dep.yml → .licenses/npm/@actions/http-client.dep.yml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.