This repository has been archived by the owner on Aug 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore([no ci]): Synced file(s) with salesforcecli/leif (#247)
* chore([no ci]): Created local '.github/workflows/manualRelease.yml' from remote 'templates/github-oclif/manualRelease.yml' * chore([no ci]): Synced local '.github/dependabot.yml' with remote 'templates/dependabot/dependabot.yml' * chore([no ci]): Created local '.github/workflows/automerge.yml' from remote 'templates/github-oclif/automerge.yml' * chore([no ci]): Created local '.github/workflows/failureNotifications.yml' from remote 'templates/github-oclif/failureNotifications.yml' * chore([no ci]): Created local '.github/workflows/onPushToMain.yml' from remote 'templates/github-oclif/onPushToMain.yml' * chore([no ci]): Created local 'git2gus/config.json' from remote 'templates/git2gus/config.json'
- Loading branch information
SF-CLI-BOT
authored
Sep 26, 2022
1 parent
7f16950
commit e8a819c
Showing
6 changed files
with
126 additions
and
10 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 |
---|---|---|
@@ -1,16 +1,21 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" | ||
versioning-strategy: increase | ||
directory: "/" | ||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
schedule: | ||
interval: "monthly" | ||
interval: 'weekly' | ||
day: 'saturday' | ||
versioning-strategy: 'increase' | ||
labels: | ||
- "dependencies" | ||
open-pull-requests-limit: 100 | ||
- 'dependencies' | ||
open-pull-requests-limit: 5 | ||
pull-request-branch-name: | ||
separator: "-" | ||
separator: '-' | ||
commit-message: | ||
# cause a release for non-dev-deps | ||
prefix: fix(deps) | ||
# no release for dev-deps | ||
prefix-development: chore(dev-deps) | ||
ignore: | ||
- dependency-name: "fs-extra" | ||
- dependency-name: "*" | ||
update-types: ["version-update:semver-major"] | ||
- dependency-name: '*' | ||
update-types: ['version-update:semver-major'] |
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,10 @@ | ||
name: automerge | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '17 2,5,8,11 * * *' | ||
|
||
jobs: | ||
automerge: | ||
uses: oclif/github-workflows/.github/workflows/automerge.yml@main | ||
secrets: inherit |
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,43 @@ | ||
name: failureNotifications | ||
|
||
on: | ||
workflow_run: | ||
workflows: | ||
- version, tag and github release | ||
- publish | ||
types: | ||
- completed | ||
|
||
jobs: | ||
failure-notify: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'failure' }} | ||
steps: | ||
- name: Announce Failure | ||
id: slack | ||
uses: slackapi/[email protected] | ||
env: | ||
# for non-CLI-team-owned plugins, you can send this anywhere you like | ||
SLACK_WEBHOOK_URL: ${{ secrets.CLI_ALERTS_SLACK_WEBHOOK }} | ||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK | ||
with: | ||
payload: | | ||
{ | ||
"text": "${{ github.event.workflow_run.name }} failed: ${{ github.event.workflow_run.repository.name }}", | ||
"blocks": [ | ||
{ | ||
"type": "header", | ||
"text": { | ||
"type": "plain_text", | ||
"text": ":bh-alert: ${{ github.event.workflow_run.name }} failed: ${{ github.event.workflow_run.repository.name }} :bh-alert:" | ||
} | ||
}, | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "Repo: ${{ github.event.workflow_run.repository.html_url }}\nWorkflow name: `${{ github.event.workflow_run.name }}`\nJob url: ${{ github.event.workflow_run.html_url }}" | ||
} | ||
} | ||
] | ||
} |
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,36 @@ | ||
name: manual release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.SF_CLI_BOT_GITHUB_TOKEN }} | ||
- name: Conventional Changelog Action | ||
id: changelog | ||
uses: TriPSs/conventional-changelog-action@d360fad3a42feca6462f72c97c165d60a02d4bf2 | ||
# overriding some of the basic behaviors to just get the changelog | ||
with: | ||
git-user-name: SF-CLI-BOT | ||
git-user-email: [email protected] | ||
github-token: ${{ secrets.SF_CLI_BOT_GITHUB_TOKEN }} | ||
output-file: false | ||
# always do the release, even if there are no semantic commits | ||
skip-on-empty: false | ||
tag-prefix: '' | ||
- uses: notiz-dev/github-action-json-property@2192e246737701f108a4571462b76c75e7376216 | ||
id: packageVersion | ||
with: | ||
path: 'package.json' | ||
prop_path: 'version' | ||
- name: Create Github Release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.SF_CLI_BOT_GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.packageVersion.outputs.prop }} | ||
release_name: ${{ steps.packageVersion.outputs.prop }} |
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,18 @@ | ||
# test | ||
name: version, tag and github release | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
release: | ||
uses: oclif/github-workflows/.github/workflows/githubRelease.yml@main | ||
secrets: inherit | ||
|
||
# most repos won't use this | ||
# depends on previous job to avoid git collisions, not for any functionality reason | ||
# docs: | ||
# uses: salesforcecli/github-workflows/.github/workflows/publishTypedoc.yml@main | ||
# secrets: inherit | ||
# needs: release |
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,4 @@ | ||
{ | ||
"productTag": "a1aB00000004Bx8IAE", | ||
"defaultBuild": "offcore.tooling.55" | ||
} |