mirror of
https://github.com/FlipsideCrypto/tools.git
synced 2026-02-06 10:46:47 +00:00
Managed by Terraform
This commit is contained in:
parent
c54b8c3b9b
commit
47c3cfd4f7
27
.github/actions/write-file/action.yml
vendored
Normal file
27
.github/actions/write-file/action.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
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