mirror of
https://github.com/altstackHQ/altstack-data.git
synced 2026-04-18 00:53:14 +02:00
fix: use create-pull-request action for protected branch
This commit is contained in:
18
.github/workflows/scrape-data.yml
vendored
18
.github/workflows/scrape-data.yml
vendored
@@ -31,9 +31,15 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: python scraper/scraper.py
|
run: python scraper/scraper.py
|
||||||
|
|
||||||
- name: Commit and push changes
|
- name: Create Pull Request
|
||||||
run: |
|
uses: peter-evans/create-pull-request@v6
|
||||||
git config --global user.name 'github-actions[bot]'
|
with:
|
||||||
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
git add data/tools.json
|
commit-message: 'chore: nightly data enrichment [skip ci]'
|
||||||
git diff --quiet && git diff --staged --quiet || (git commit -m 'chore: nightly data enrichment [skip ci]' && git push)
|
title: 'chore: nightly GitHub data enrichment'
|
||||||
|
body: |
|
||||||
|
Automated nightly update of GitHub metadata for open-source tools.
|
||||||
|
- Stars, last commit, language, and license fields refreshed.
|
||||||
|
branch: chore/nightly-enrichment
|
||||||
|
delete-branch: true
|
||||||
|
labels: automated
|
||||||
|
|||||||
Reference in New Issue
Block a user