-
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.
- Loading branch information
1 parent
a3fd448
commit eae2fbb
Showing
2 changed files
with
53 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Deploy to Fly | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Wait for other checks to succeed | ||
uses: lewagon/[email protected] | ||
with: | ||
ref: ${{ github.ref }} | ||
running-workflow-name: deploy | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: actions/checkout@v3 | ||
- uses: superfly/flyctl-actions/setup-flyctl@master | ||
- run: flyctl deploy --remote-only | ||
env: | ||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |
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,31 @@ | ||
name: Update Fork | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
auto-update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.PAT }} # So that the workflow triggers on fork update | ||
- uses: fregante/setup-git-user@v2 | ||
- name: Check if fork is synced with upstream | ||
id: check_sync | ||
uses: MadLadSquad/[email protected] | ||
with: | ||
upstream-url: "https://github.com/iJSD-Org/IacDiscordNotifs" | ||
first-branch: main | ||
second-branch: main | ||
- name: Rebase on top of base branch | ||
if: steps.check_sync.outputs.behind > 0 | ||
run: | | ||
git remote add upstream https://github.com/iJSD-Org/IacDiscordNotifs | ||
git fetch upstream | ||
git rebase upstream/main | ||
git commit --amend --no-edit | ||
git push -f |