Skip to content

Commit

Permalink
Replaced sync action, added payload (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikkelM authored Feb 7, 2024
1 parent 3cc6a72 commit 9bc029f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/glitch_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ on:
jobs:
GlitchDeploy:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Sync to Glitch Project
uses: wei/git-sync@v3
with:
source_repo: https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
source_branch: ${{ github.ref }}
destination_repo: ${{ secrets.GLITCH_GIT_URL }}
destination_branch: master
- uses: lonnen/sync-branch-to-glitch-action@v0.0.3
env:
GLITCH_GIT_URL: ${{ secrets.GLITCH_GIT_URL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_BRANCH: ${{ github.event.client_payload.version }}
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,4 @@ jobs:
route: POST /repos/{repo}/dispatches
repo: ${{ github.repository }}
event_type: release_created
client_payload: '{"version": "v${{ needs.CheckVersion.outputs.newVersion }}"}'

0 comments on commit 9bc029f

Please sign in to comment.