Skip to content

Commit

Permalink
Create a different file to update from submodule files
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangeRanger committed Nov 26, 2024
1 parent 23f4637 commit a63a429
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 53 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/update-submodule-files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Update Submodule Files

on:
pull_request:
types: [opened, synchronize]
branches:
- main

jobs:
update-files:
if: github.actor == 'dependabot[bot]' && github.event.pull_request.head.ref == 'dependabot/*-gitsubmodule-*'
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install dependencies
run: pip install -r requirements.txt

- name: Run update script
run: python update_repo.py

- name: Commit and push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m "Update files based on submodule changes"
git push
53 changes: 0 additions & 53 deletions .github/workflows/update_from_submodule.yml

This file was deleted.

0 comments on commit a63a429

Please sign in to comment.