Skip to content

Instantly share code, notes, and snippets.

@iganari
Created November 21, 2019 20:42
Show Gist options
  • Save iganari/e79f80cd13340642913418a3b1ec16f5 to your computer and use it in GitHub Desktop.
Save iganari/e79f80cd13340642913418a3b1ec16f5 to your computer and use it in GitHub Desktop.
master ブランチにコミットがあった場合に、 modify-readme-only ブランチにて、 master ブランチの pull を GitHub Actions で行う自分用スクリプト
name: CI
on:
push:
branchs:
- master
- feature/add-actions-yaml # For test branch
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run a one-line script
run: echo Hello, world!
- name: Run a multi-line script
env:
SECRET_VARIABLE: ${{ secrets.VAR_TEST }}
run: |
echo Add other actions to build,
echo test, and deploy your project.
echo ${VAR_TEST}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment