Update upstream-info.json #1035
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: Update upstream-info.json | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 */12 * * *' | |
defaults: | |
run: | |
working-directory: ./pkgs/shadow-client | |
jobs: | |
update-upstream-info: | |
name: Update Upstream information | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v16 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: DeterminateSystems/magic-nix-cache-action@v8 | |
- name: Configure Git author and create branch | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
git checkout -b update-shadow-channels | |
- name: Update Upstream information file | |
run: ./update.py --commit | |
- name: Push branch | |
run: git push origin update-shadow-channels -f | |
- name: Create pull request | |
uses: repo-sync/pull-request@v2 | |
with: | |
source_branch: "update-shadow-channels" | |
destination_branch: "master" | |
pr_title: "Update upstream-info.json" | |
pr_reviewer: "anthonyroussel" | |
pr_label: "update" | |
github_token: ${{ secrets.GITHUB_TOKEN }} |