(O2 New): use darkModeBeyondBlue in controlActivated #69
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update PR description | |
on: | |
pull_request: | |
types: [opened] | |
paths: | |
- "tokens/*" | |
jobs: | |
tokens-preview: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get branch name | |
uses: rlespinasse/github-slug-action@v3.x | |
- name: Update description | |
uses: actions/github-script@v4 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const { data: pr } = await github.pulls.list({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
head: `${context.repo.owner}:${context.payload.ref}` | |
}); | |
if (pr.length > 0) { | |
const newComment = '✅ [Preview token changes](https://mistica-design.vercel.app/tokens-map?branch=${{ env.GITHUB_REF_SLUG_URL }}&skin=movistar&tokenType=color&activeColor=undefined) with `${{ env.GITHUB_REF_SLUG_URL }}` as a branch target'; | |
await github.issues.createComment({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: pr[0].number, | |
body: newComment | |
}); | |
} else { | |
console.log('No pull request found for this push'); | |
} |