Skip to content

Commit

Permalink
should be working
Browse files Browse the repository at this point in the history
  • Loading branch information
stefancplace committed Jan 11, 2024
1 parent 4bc540e commit 697a260
Show file tree
Hide file tree
Showing 7 changed files with 1,445 additions and 1,744 deletions.
11 changes: 11 additions & 0 deletions .github/actions/upmerge/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'Check Upmerge'
description: 'Github Action to check wether upmerge is necessary'
runs:
using: 'composite'
steps:
- run: printenv
shell: bash
- run: cd "$GITHUB_ACTION_PATH/../../.." && pwd && npm ci
shell: bash
- run: npx ts-node "$GITHUB_ACTION_PATH/../../../tools/scripts/upmerge/upmerge.ts"
shell: bash
12 changes: 12 additions & 0 deletions .github/workflow-templates/fe/fe-check-upmerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: 'Check Upmerge'
on:
schedule:
# Runs "At 18:00 every day" (see https://crontab.guru)
- cron: '0 18 * * *'

permissions: write-all

jobs:
check-upmerge:
uses: collaborationFactory/github-actions/.github/workflows/fe-check-upmerge.yml@master

28 changes: 28 additions & 0 deletions .github/workflows/fe-check-upmerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Check wether upmerge is necessary on a CRON Schedule

jobs:
check-upmerge:
name: Run Upmerge Flow
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ inputs.GHA_REF }}
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: 18.18.2

- name: Cache Node Modules
id: npm-cache
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}

- name: check if upmerge is necessary and post to slack
uses: collaborationFactory/github-actions/.github/actions/upmerge@master
env:
SLACK_TOKEN_UPMERGE: ${{ secrets.SLACK_TOKEN_UPMERGE }}

0 comments on commit 697a260

Please sign in to comment.