mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-20 09:36:47 +00:00
Formatting
This commit is contained in:
parent
567977e102
commit
929af7772e
2 changed files with 30 additions and 31 deletions
10
.github/workflows/backstage-catalog-helper.yml
vendored
10
.github/workflows/backstage-catalog-helper.yml
vendored
|
@ -28,10 +28,10 @@ jobs:
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ steps.generate_token.outputs.token}}
|
token: ${{ steps.generate_token.outputs.token}}
|
||||||
commit-message: 'Add catalog-info.yaml'
|
commit-message: "Add catalog-info.yaml"
|
||||||
branch: 'backstage/catalog-info'
|
branch: "backstage/catalog-info"
|
||||||
title: 'Add catalog-info.yaml'
|
title: "Add catalog-info.yaml"
|
||||||
body: 'Adding a basic catalog-info.yaml to start populating the backstage catalog with your components.'
|
body: "Adding a basic catalog-info.yaml to start populating the backstage catalog with your components."
|
||||||
labels: 'backstage'
|
labels: "backstage"
|
||||||
add-paths: |
|
add-paths: |
|
||||||
catalog-info.yaml
|
catalog-info.yaml
|
49
.github/workflows/s3-backup.yml
vendored
49
.github/workflows/s3-backup.yml
vendored
|
@ -8,32 +8,31 @@ jobs:
|
||||||
s3-backup:
|
s3-backup:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # retrieve all history
|
||||||
|
|
||||||
- name: Checkout
|
- name: Configure AWS credentials
|
||||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # retrieve all history
|
aws-access-key-id: ${{ secrets.AWS_S3_BACKUP_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ secrets.AWS_S3_BACKUP_SECRET_ACCESS_KEY }}
|
||||||
|
aws-region: ca-central-1
|
||||||
|
|
||||||
- name: Configure AWS credentials
|
- name: Create ZIP bundle
|
||||||
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
|
run: |
|
||||||
with:
|
ZIP_FILE=`basename ${{ github.repository }}`-`date '+%Y-%m-%d'`.zip
|
||||||
aws-access-key-id: ${{ secrets.AWS_S3_BACKUP_ACCESS_KEY_ID }}
|
zip -rq "${ZIP_FILE}" .
|
||||||
aws-secret-access-key: ${{ secrets.AWS_S3_BACKUP_SECRET_ACCESS_KEY }}
|
mkdir -p ${{ github.repository }}
|
||||||
aws-region: ca-central-1
|
mv "${ZIP_FILE}" ${{ github.repository }}
|
||||||
|
|
||||||
- name: Create ZIP bundle
|
- name: Upload to S3 bucket
|
||||||
run: |
|
run: |
|
||||||
ZIP_FILE=`basename ${{ github.repository }}`-`date '+%Y-%m-%d'`.zip
|
aws s3 sync . s3://${{ secrets.AWS_S3_BACKUP_BUCKET }} --exclude='*' --include='${{ github.repository }}/*'
|
||||||
zip -rq "${ZIP_FILE}" .
|
|
||||||
mkdir -p ${{ github.repository }}
|
|
||||||
mv "${ZIP_FILE}" ${{ github.repository }}
|
|
||||||
|
|
||||||
- name: Upload to S3 bucket
|
- name: Notify Slack channel if this job failed
|
||||||
run: |
|
if: ${{ failure() }}
|
||||||
aws s3 sync . s3://${{ secrets.AWS_S3_BACKUP_BUCKET }} --exclude='*' --include='${{ github.repository }}/*'
|
run: |
|
||||||
|
json='{"text":"S3 backup failed in <https://github.com/${{ github.repository }}>!"}'
|
||||||
- name: Notify Slack channel if this job failed
|
curl -X POST -H 'Content-type: application/json' --data "$json" ${{ secrets.SLACK_NOTIFY_WEBHOOK }}
|
||||||
if: ${{ failure() }}
|
|
||||||
run: |
|
|
||||||
json='{"text":"S3 backup failed in <https://github.com/${{ github.repository }}>!"}'
|
|
||||||
curl -X POST -H 'Content-type: application/json' --data "$json" ${{ secrets.SLACK_NOTIFY_WEBHOOK }}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue