Skip to content

Commit 6dec037

Browse files
authored
chore: Convert PR title action to module (#9152)
1 parent 31dfb75 commit 6dec037

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const core = require('@actions/core');
2-
const github = require('@actions/github');
1+
import * as core from '@actions/core';
2+
import * as github from '@actions/github';
33

44
(async function run() {
55
const title = github.context.payload.pull_request?.title;

.github/workflows/pr-titles.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
with:
2020
node-version: '20'
2121
- run: npm i @actions/core @actions/github
22-
- run: node .github/actions/pr-titles.js
22+
- run: node .github/actions/pr-titles.mjs

0 commit comments

Comments
 (0)