mirror of
https://github.com/FlipsideCrypto/tools.git
synced 2026-02-06 18:56:52 +00:00
Managed by Terraform
This commit is contained in:
parent
b4433f27e6
commit
d92b81b5d2
31
.github/actions/write-file/action.yml
vendored
Normal file
31
.github/actions/write-file/action.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
# File managed by Terraform
|
||||
# Contents will be overwritten automatically
|
||||
# To make changes edit the original template in internal-organization
|
||||
|
||||
name: 'write-file'
|
||||
description: 'Write a file to the runner filesystem and set permissions on it'
|
||||
inputs:
|
||||
path: # id of input
|
||||
description: "The path to the file to write"
|
||||
required: true
|
||||
contents:
|
||||
description: "The contents of the file"
|
||||
required: true
|
||||
mode:
|
||||
description: "The mode of the file in symbolic mode (e.g. a+x)"
|
||||
default: "a+x"
|
||||
required: false
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Write file
|
||||
shell: bash
|
||||
id: write-file
|
||||
run: |
|
||||
set -euxo pipefail
|
||||
|
||||
cat << EOF > ${{ inputs.path }}
|
||||
${{ inputs.contents }}
|
||||
EOF
|
||||
|
||||
chmod ${{ inputs.mode }} ${{ inputs.path }}
|
||||
Loading…
Reference in New Issue
Block a user