1
0
Fork 0
mirror of https://github.com/kou029w/http-echo.git synced 2025-01-18 16:08:13 +00:00

create sync-glitch action

This commit is contained in:
Nebel 2020-03-24 01:02:27 +09:00
parent 79fa8ca0be
commit ba5bdc8e09

21
.github/workflows/sync-glitch.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: sync-glitch
on:
push:
branches: [master]
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: echo "::set-env name=YARN_CACHE_DIR::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ env.YARN_CACHE_DIR }}
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: yarn-
- run: yarn
- run: echo "::set-env name=GH_REPO::${GITHUB_REPOSITORY}"
- run: yarn sync-glitch
env:
GLITCH_PROJECT_ID: "${{ secrets.GLITCH_PROJECT_ID }}"
GLITCH_TOKEN: "${{ secrets.GLITCH_TOKEN }}"