mirror of
https://github.com/ansible/awx.git
synced 2026-01-08 14:32:07 -03:30
Update schema upload workflows to organize S3 files by product name:
- Upload schemas to s3://awx-public-ci-files/{product}/{branch}/schema.json
- Update Makefile to download from product-specific paths for schema diff
- Update feature branch deletion to clean up from correct product path
This separates AWX and Tower schemas into distinct S3 folders.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>
24 lines
928 B
YAML
24 lines
928 B
YAML
---
|
|
name: Feature branch deletion cleanup
|
|
env:
|
|
LC_ALL: "C.UTF-8" # prevent ERROR: Ansible could not initialize the preferred locale: unsupported locale setting
|
|
on: delete
|
|
jobs:
|
|
branch_delete:
|
|
if: ${{ github.event.ref_type == 'branch' && startsWith(github.event.ref, 'feature_') }}
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
permissions:
|
|
packages: write
|
|
contents: read
|
|
steps:
|
|
- name: Delete API Schema
|
|
env:
|
|
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
|
|
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
|
|
AWS_REGION: 'us-east-1'
|
|
run: |
|
|
ansible localhost -c local, -m command -a "{{ ansible_python_interpreter + ' -m pip install boto3'}}"
|
|
ansible localhost -c local -m aws_s3 \
|
|
-a "bucket=awx-public-ci-files object=${{ github.event.repository.name }}/${GITHUB_REF##*/}/schema.json mode=delobj permission=public-read"
|