Skip to content

Repository files navigation

github-actions

Collection of reusable GitHub actions and workflows.

Workflows

It allows us to download a dependency zip from S3 when available.

Usage

dependency-zip:
uses: stellarwp/github-actions/.github/workflows/dependency-zip.yml@mainwith:
repository: <owner>/<repo>main-branch: <the-main-branch (default: main)>secrets:
GITHUB_CHECKOUT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}PACKAGED_ZIP_BUCKET: ${{ secrets.PACKAGED_ZIP_BUCKET }}S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}S3_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}PACKAGED_ZIP_REGION: ${{ secrets.PACKAGED_ZIP_REGION }}S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}

And then you use it in another job:

jobs:
build:
runs-on: ubuntu-latestneeds: dependency-zipsteps:
- name: Fetch the release zipif: ${{ needs.dependency-zip.outputs.use-release == 'true' }}uses: robinraju/release-downloader@v1.10with:
repository: <owner>/<repo>latest: truefileName: <file.zip>
- name: Download the zip from S3if: ${{ ! needs.dependency-zip.outputs.use-release != 'true' }}uses: the-events-calendar/action-s3-utility@mainenv:
S3_BUCKET: ${{ secrets.PACKAGED_ZIP_BUCKET }}S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}S3_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}S3_REGION: ${{ secrets.PACKAGED_ZIP_REGION }}S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}COMMAND: cpFILE: ${{ needs.dependency-zip.outputs.s3-zip-name }}DESTINATION: <file.zip>

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

1 star

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors