forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test newest version of gbp-action (tgstation#57980)
Read about it here: tgstation/gbp-action#28 TLDR: Less race conditions, and all logs are now pushed to a separate branch. The new location of gbp-balances.toml is in the gbp-balances branch. Will most likely be able to delete the one in master so people don't get confused. This required a workflow update, and so was not directly pushed to master. This currently uses my PR branch directly so that I can make changes for anything that doesn't work. When it is solid, I will push it to master and we will go back to gbp-actions@master, or some pinned version.
- Loading branch information
1 parent
b35a1dd
commit eb0fa27
Showing
2 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }} |