test slack integration #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Generate CI | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows-source/*.yml' | |
env: | |
CI_PROJECT_DIR: ${{ github.workspace }} | |
jobs: | |
generate-ci: | |
name: Generate CI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
token: ${{ secrets.IDX_PUSH_TO_PR }} | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Run Generate CI | |
id: generate-ci | |
run: | | |
python $CI_PROJECT_DIR/.github/scripts/generate-ci.py | |
if [ -n "$(git status --porcelain)" ]; then | |
git config --global user.name "IDX GitHub Automation" | |
git config --global user.email "IDX GitHub Automation" | |
git add . | |
git commit -m "IDX GitHub Automation" | |
git push | |
else | |
echo "git working tree clean - no changes to be committed" | |
fi |