Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/urcomputeringpal/.github
Codifying organizational norms, reusable workflows
https://github.com/urcomputeringpal/.github
github-actions reusable-workflow reusable-workflows workflow-templates
Last synced: 8 days ago
JSON representation
Codifying organizational norms, reusable workflows
- Host: GitHub
- URL: https://github.com/urcomputeringpal/.github
- Owner: urcomputeringpal
- License: apache-2.0
- Created: 2019-02-24T20:47:28.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T12:03:56.000Z (18 days ago)
- Last Synced: 2024-10-29T14:34:30.085Z (18 days ago)
- Topics: github-actions, reusable-workflow, reusable-workflows, workflow-templates
- Homepage: https://urcomputeringpal.com/
- Size: 158 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Ur Computering Pal
:wave: https://urcomputeringpal.com
## Reusable Actions
### Workflow Failure Issues
Listens for `workflow_run` events and open issues when a workflow fails. Useful for being alerted to workflow failures before they interrupt the progress of multiple team members.
```yaml
name: open issues on workflow failure, close on success
on:
workflow_run:
# Configure the workflows to monitor here
workflows:
- test
- release
- etc
types:
- completed
jobs:
workflow-failure-issues:
uses: urcomputeringpal/.github/.github/workflows/workflow-failure-issues.yaml@main
# Configure the type of events to listen for here
if: |
(
github.event_name == 'schedule' ||
github.event.workflow_run.head_branch == github.event.repository.default_branch
)
```### Renovate
Like dependabot, but customizable. This workflow wraps https://github.com/renovatebot/github-action with some curated defaults. Requires a private GitHub App be installed to grant the permissions necessary to update Actions workflows etc.
#### Setup
- [Create a new app](https://docs.github.com/en/developers/apps/creating-a-github-app)
- Configure the app permissions and your renovate.js as described in the [Renovate documentation](https://docs.renovatebot.com/modules/platform/github/#running-as-a-github-app).
- Add this workflow in a PR. Once merged, Renovate will open an onboarding PR that explains what Renovate will do and how to configure it.```yaml
name: renovate
on:
push:
branches:
- main
- renovate/configure
pull_request:
workflow_dispatch: {}
schedule:
- cron: '0 */6 * * *'
jobs:
renovate:
name: Update
if: github.event_name != 'pull_request'
uses: urcomputeringpal/.github/.github/workflows/renovate.yaml@main
with:
renovate_app_slug: your-app-name
onboarding: 'true'
secrets:
RENOVATE_APP_ID: ${{ secrets.RENOVATE_APP_ID }}
RENOVATE_APP_PEM: ${{ secrets.RENOVATE_APP_PEM }}validate:
name: Validate
if: github.event_name == 'pull_request'
uses: urcomputeringpal/.github/.github/workflows/renovate.yaml@main
with:
renovate_app_slug: your-app-name
dry_run_branch: ${{ github.event.pull_request.head.ref }}
secrets:
RENOVATE_APP_ID: ${{ secrets.RENOVATE_APP_ID }}
RENOVATE_APP_PEM: ${{ secrets.RENOVATE_APP_PEM }}
```