mirror of
https://github.com/fjogeleit/http-request-action.git
synced 2025-06-04 21:07:57 +08:00
15 lines
351 B
JavaScript
15 lines
351 B
JavaScript
'use strict'
|
|
|
|
const axios = require('axios');
|
|
const { GithubActions } = require('../githubActions');
|
|
|
|
/**
|
|
* @param {GithubActions} actions
|
|
*
|
|
* @returns {(response: axios.AxiosResponse) => void}
|
|
*/
|
|
const createMaskHandler = (actions) => (response) => {
|
|
actions.setSecret(JSON.stringify(response.data))
|
|
}
|
|
|
|
module.exports = { createMaskHandler } |