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

Adds Guard workflow (#58) #59

Merged
merged 2 commits into from
Jun 16, 2024
Merged
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
18 changes: 18 additions & 0 deletions .github/workflows/guard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Guard Main Branch

on:
pull_request:
types:
- auto_merge_enabled
branches:
- main
merge_group:

permissions:
contents: read

jobs:
guardian-jobs:
uses: ec-intl/.github/.github/workflows/[email protected]
secrets: inherit
5 changes: 3 additions & 2 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ name: Lint Codebase
on:
pull_request:
types: [auto_merge_enabled]
branches: [main]
branches: [staging]
merge_group:

jobs:
run-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# Full git history is needed to get a proper
# list of changed files within `super-linter`
Expand Down
35 changes: 19 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# dotfiles 🚀

[![Lint Codebase](https://github.com/ec-intl/dotfiles/actions/workflows/linter.yml/badge.svg)](https://github.com/ec-intl/dotfiles/actions/workflows/linter.yml)
[![Guard](https://github.com/ec-intl/dotfiles/actions/workflows/guard.yml/badge.svg)](https://github.com/ec-intl/dotfiles/actions/workflows/guard.yml)

## About

Expand Down Expand Up @@ -88,22 +89,24 @@ Here is the dotfiles's directory structure (note that Zsh uses the bash function

### Dotfiles Directory Structure

- src
- bash
- aliases
- functions
- env.env
- zsh
- aliases
- env.env
- bin
- gres: This script replaces a pattern in a file, but does not change the file's contents.
- install
- License
- README.md
- run-linter
- uninstall
- update
```plaintext
|--- src
|--- bash
|--- aliases
|--- functions
|--- env.env
|--- zsh
|--- aliases
|--- env.env
|--- bin
|--- gres: This script replaces a pattern in a file, but does not change the file's contents.
|--- install
|--- License
|--- README.md
|--- run-linter
|--- uninstall
|--- update
```

## Further Information

Expand Down