Releases - DO NOT DELETE #33
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: Release manager | |
on: | |
issue_comment: | |
types: [created] | |
concurrency: | |
group: release-manager | |
cancel-in-progress: false | |
jobs: | |
specific-issue-job: | |
runs-on: ec2-runners | |
container: | |
image: public.ecr.aws/m3u4c4h9/island-is/actions-runner-public:latest | |
permissions: write-all | |
if: | | |
github.event.issue.number == vars.RELEASE_ISSUE && | |
contains(fromJson(vars.RELEASE_MANAGERS), github.event.comment.user.login) && | |
startsWith(github.event.comment.body, 'release ') | |
steps: | |
- name: Extract SHA from comment | |
id: extract_sha | |
run: | | |
echo "::set-output name=sha::$(echo "${{ github.event.comment.body }}" | awk '{print $2}')" | |
- name: SHA | |
run: echo ${{ steps.extract_sha.outputs.sha }} | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: "main" | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: ".nvmrc" | |
check-latest: false | |
cache: "yarn" | |
cache-dependency-path: "yarn.lock" | |
- name: Install dependencies | |
run: yarn install | |
- name: Pipe release | |
env: | |
GITHUB_TOKEN: ${{ secrets.PT_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
PIPES_ACTION: CreateRelease | |
RELEASE_SHA: ${{ steps.extract_sha.outputs.sha }} | |
run: yarn node src/ci.tsx | |
working-directory: ./ci |