Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .github/workflows/daily-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: Checkout stable branch
Expand Down Expand Up @@ -56,16 +57,18 @@ jobs:
echo "has_changes=true" >> $GITHUB_OUTPUT
fi

- name: Commit and merge changes
- name: Commit and create PR
if: steps.changes.outputs.has_changes == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
BRANCH="update/daily-$(date -u +%Y-%m-%d)"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add cloud_providers_v2.json README.md
git commit -m "chore: daily signature update $(date -u +%Y-%m-%d)"
git push origin "$BRANCH"
git checkout stable
git merge "$BRANCH" --no-edit -m "chore: merge daily signature update"
git push origin stable
git push origin --delete "$BRANCH"
gh pr create --base stable --head "$BRANCH" \
--title "chore: daily signature update $(date -u +%Y-%m-%d)" \
--body "Automated daily update of cloud provider signatures and README table."
gh pr merge "$BRANCH" --auto --squash --delete-branch