Skip to content

バージョン別の各Railsアップグレード事例を、それぞれ対応するセクションの訳注として追記した #188

バージョン別の各Railsアップグレード事例を、それぞれ対応するセクションの訳注として追記した

バージョン別の各Railsアップグレード事例を、それぞれ対応するセクションの訳注として追記した #188

Workflow file for this run

name: Deploy Hook
on:
push:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
# https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
workflow_dispatch:
jobs:
event:
runs-on: ubuntu-latest
steps:
- name: 📥 Download codes from GitHub
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: ✅️ Check if contents changed
uses: dorny/paths-filter@v2
id: changes
with:
filters: |
contents:
- 'guides/**'
- name: 🚀 Deploy if contents changed
if: steps.changes.outputs.contents == 'true'
env:
DEPLOY_HOOK_TOKEN: ${{ secrets.DEPLOY_HOOK_TOKEN }}
DEPLOY_HOOK_ENDPOINT: ${{ secrets.DEPLOY_HOOK_ENDPOINT }}
run: |
curl -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${{ env.DEPLOY_HOOK_TOKEN }}" \
${{ env.DEPLOY_HOOK_ENDPOINT }} \
-d '{"ref":"master"}'