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

Re-license AGPLv3, remove bin/promote #800

Merged
merged 16 commits into from
Aug 11, 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
5 changes: 5 additions & 0 deletions .github/bin/filter-changes
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ for file; do
continue
fi

if [[ "$(basename "$file")" =~ ^LICENSE\.{0,1}|^COPYING ]]; then
echo "Ignoring metadata file: $file"
continue
fi

echo "Changed restyler: $base"
restylers+=("$base")

Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ jobs:
- name: "Build, test, and push (if main) sha-tagged images"
run: >-
restylers
${{ runner.debug && '--debug' || '' }}
--sha ${{ github.sha }}
--write tested.yaml
--no-pull
Expand Down Expand Up @@ -168,10 +169,3 @@ jobs:
restylers.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# TODO: update CLI to use release artifacts and stop managing this
- run: ./bin/promote dev
env:
AWS_ACCESS_KEY_ID: ${{ secrets.aws_access_key_id }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.aws_secret_access_key }}
AWS_DEFAULT_REGION: us-east-1
7 changes: 0 additions & 7 deletions .github/workflows/promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,3 @@ jobs:
restylers.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# TODO: update CLI to use release artifacts and stop managing this
- run: ./bin/promote "${{ steps.prep.outputs.to }}"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.aws_access_key_id }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.aws_secret_access_key }}
AWS_DEFAULT_REGION: us-east-1
53 changes: 53 additions & 0 deletions .headroom.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
## This is the configuration file for Headroom.
## See https://github.com/vaclavsvejcar/headroom for more details.

## Defines with which version of Headroom this configuration is compatible.
## Headroom uses this field to detect whether your configuration doesn't need
## any manual migration steps in case that it's older than your current Headroom
## version. You don't need to touch this field unless explicitly stated in
## migration guide during upgrading Headroom to new version.
version: 0.4.3.0

## Defines the behaviour how to handle license headers, possible options are:
##
## - add = (default) adds license header to files with no existing header
## (same as '-a|--add-headers' command line argument)
## - drop = drops existing license header from without replacement
## (same as '-d|--drop-headers' command line argument)
## - replace = adds or replaces existing license header
## (same as '-r|--replace-headers' command line argument)
run-mode: add

## Paths to source code files (either files or directories),
## same as '-s|--source-path=PATH' command line argument (can be used multiple
## times for more than one path).
source-paths:
- _tools/restylers/app
- _tools/restylers/src
- _tools/restylers/test


## If set to 'true', Headroom tries to detect whether any VCS (like GIT) is used
## for current project and if yes, it loads rules for ignored files and excludes
## all source paths that matches these rules.
exclude-ignored-paths: false

## Paths to template files (either files or directories),
## same as '-t|--template-path=PATH' command line argument (can be used multiple
## times for more than one path).
template-paths:
- headroom-templates

## Variables (key-value) to replace in templates,
## same as '-v|--variable="KEY=VALUE"' command line argument (can be used
## multiple times for more than one path).
variables:
author: Patrick Brisbin
email: pbrisbin@gmail.com
project: Restyler
year: "2024"

license-headers:
haskell:
line-comment:
prefixed-by: "^--"
3 changes: 3 additions & 0 deletions .restyled.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
also_exclude:
- "./*/LICENSE*"

restylers:
- fourmolu:
include:
Expand Down
Loading
Loading