Coder Social home page Coder Social logo

actions's Introduction

actions

A collection of Github actions.

append-md-local-url

Append a prefix to local URLs in a Markdown file, except for the following links:

  1. full URLs, e.g: [](https://github.com/unity3d-jp/actions)
  2. local anchors, e.g: [](#append).
Inputs Desc
filepath The path to the file
prefix The prefix to be appended

Usage

steps:
  - uses: actions/checkout@v3
  - name: Put prefix
    id: put-prefix
    uses: unity3d-jp/actions/append-md-local-url@main
    with:
      filepath: 'path-to-file'
      prefix: 'foo/bar/'

gdrive-file-copy

Creates a copy of a file and applies any requested updates with patch semantics using the Files: copy API of Google Drive API .

This API requires setting up Google Services Account (GSA).

Inputs Desc
credentials A base64 encoded string of Google Service Account credentials.
fileId The source file ID
targetFileName The target file name (optional)
Outputs Desc
copiedFileId The ID of the copied file
copiedFileName The file name of the copied file
driveId The drive ID where the file is located

Usage

steps:
  - uses: actions/checkout@v3
  - name: Copy file on Google Drive
    id: copy-file
    uses: unity3d-jp/actions/gdrive-file-copy@main
    with:
      credentials: ${{ secrets.DRIVE_CREDENTIALS }}
      fileId: 'file-id-on-google-drive'
      targetFileName: 'new-foo-file'
  - name: Print copied file ID
    id: print-file-id
    run: |
      echo "Copied file ID: ${{ steps.copy-file.outputs.copiedFileId }}, on drive ID: ${{ steps.copy-file.outputs.driveId }}" 

read-file

Read a file

Inputs Desc
filepath The path to the file
Outputs Desc
content The content of the file

Usage

steps:
  - uses: actions/checkout@v3
  - name: Read file
    id: read-the-file
    uses: unity3d-jp/actions/read-file@main
    with:
      filepath: 'path-to-file'
  - name: Print file
    id: print-the-file
    run: |
      echo "${{ steps.read-the-file.outputs.content }}" 

Misc

actions's People

Contributors

sindharta avatar sindharta-tanuwijaya avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.