Skip to content
Open

test #268

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 30 additions & 3 deletions .github/workflows/create_heroku_review_app.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,40 @@
name: Review App
on:
pull_request_target:
types: [opened]
pull_request:
types: [opened, synchronize]

jobs:
create-review-app:
runs-on: ubuntu-latest
steps:
- uses: fastruby/manage-heroku-review-app@9fa49f0320460f278c3687bc348dd0cbb18555dc # v1.3
- name: Get PR Number
id: get_pr_number
run: echo "::set-output name=pr_number::${{ github.event.pull_request.number }}"

- name: Check if PR Number is greater than 140
id: set_step_id
run: |
pr_number=${{ steps.get_pr_number.outputs.pr_number }}
if [ $pr_number -gt 140 ]; then
echo "::set-output name=step_id::true"
else
echo "::set-output name=step_id::false"
fi

- name: Display step_id
run: echo "Step ID is ${{ steps.set_step_id.outputs.step_id }}"

- uses: kqito/manage-heroku-review-app@55e434ad5ac86f21cf2f7654de1566973fbc7046
if: ${{ steps.set_step_id.outputs.step_id == 'true' }}
with:
action: destroy
env:
HEROKU_API_TOKEN: ${{ secrets.HEROKU_API_TOKEN }}
HEROKU_PIPELINE_ID: ${{ secrets.HEROKU_PIPELINE_ID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: kqito/manage-heroku-review-app@55e434ad5ac86f21cf2f7654de1566973fbc7046
if: ${{ steps.set_step_id.outputs.step_id == 'true' }}
with:
action: create
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/destroy_heroku_review_app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
destroy-review-app:
runs-on: ubuntu-latest
steps:
- uses: fastruby/manage-heroku-review-app@9fa49f0320460f278c3687bc348dd0cbb18555dc # v1.3
- uses: kqito/manage-heroku-review-app@55e434ad5ac86f21cf2f7654de1566973fbc7046
with:
action: destroy
env:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Web Speed Hackathon 2025 AREMA

test

## 概要

**"Web Speed Hackathon 2025" は、非常に重たい Web アプリをチューニングして、いかに高速にするかを競う競技です。**
Expand Down
Loading