diff --git a/.github/workflows/gbp.yml b/.github/workflows/gbp.yml index 19a6b389ce5b7..9d75f3d3582b9 100644 --- a/.github/workflows/gbp.yml +++ b/.github/workflows/gbp.yml @@ -8,7 +8,22 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Setup git + run: | + git config --global user.name "gbp-action" + git config --global user.email "<>" + - name: Checkout alternate branch + uses: actions/checkout@v2 + with: + ref: "gbp-balances" # The branch name + path: gbp-balances + # This is to ensure we keep the gbp.toml from master + # without having to update our separate branch. + - name: Copy configuration + run: cp ./.github/gbp.toml ./gbp-balances/.github/gbp.toml - name: GBP action - uses: tgstation/gbp-action@master + uses: Mothblocks/gbp-action@collate-changes with: + branch: "gbp-balances" + directory: ./gbp-balances token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/gbp_collect.yml b/.github/workflows/gbp_collect.yml new file mode 100644 index 0000000000000..b1d31b1ae0fdf --- /dev/null +++ b/.github/workflows/gbp_collect.yml @@ -0,0 +1,30 @@ +name: GBP Collection +# Every hour at the :20 minute mark. GitHub tells us to pick odd hours, instead of just using the start. +on: + schedule: + - cron: "20 * * * *" +jobs: + gbp_collection: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup git + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" + - name: Checkout alternate branch + uses: actions/checkout@v2 + with: + ref: "gbp-balances" # The branch name + path: gbp-balances + # This is to ensure we keep the gbp.toml from master + # without having to update our separate branch. + - name: Copy configuration + run: cp ./.github/gbp.toml ./gbp-balances/.github/gbp.toml + - name: GBP action + uses: ./ + with: + collect: "true" + directory: ./gbp-balances + token: ${{ secrets.GITHUB_TOKEN }}