Skip to content

Commit

Permalink
Test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrocapra committed Sep 29, 2023
1 parent 322965f commit a10e1fb
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/add-copyright-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Prepend Comments

on:
push:
branches:
- add-comments-top-file-ci

jobs:
prepend-comments:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Prepend comments to files
run: |
for file in $(find . -name '*.cs' -o -name '*.ts' -o -name '*.tsx' -o -name '*.js'); do
echo -e "// Copyright 2023 Quantoz Technology B.V. and contributors. Licensed\n// under the Apache License, Version 2.0. See the NOTICE file at the root\n// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0\n\n$(cat $file)" > $file
done
- name: Commit and push if changed
run: |
git config --global user.name 'GitHub Action'
git config --global user.email '[email protected]'
git add -A
if [[ $(git status --porcelain) ]]; then
git commit -m "Prepend comments to source files"
git push
fi
4 changes: 0 additions & 4 deletions mobile/src/screens/Withdraw.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// Copyright 2023 Quantoz Technology B.V. and contributors. Licensed
// under the Apache License, Version 2.0. See the NOTICE file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0

import { NativeStackScreenProps } from "@react-navigation/native-stack";
import { useMutation, useQueryClient } from "@tanstack/react-query";
import { AxiosError } from "axios";
Expand Down

0 comments on commit a10e1fb

Please sign in to comment.