https://github.com/stellarwp/github-actions
https://github.com/stellarwp/github-actions
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stellarwp/github-actions
- Owner: stellarwp
- License: mit
- Created: 2023-11-28T00:46:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-17T17:06:45.000Z (12 months ago)
- Last Synced: 2025-06-17T18:22:57.615Z (12 months ago)
- Size: 95.7 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-actions
Collection of reusable GitHub actions and workflows.
## Workflows
### [Dependency zip](.github/workflows/dependency-zip.yml)
It allows us to download a dependency zip from S3 when available.
#### Usage
```yaml
dependency-zip:
uses: stellarwp/github-actions/.github/workflows/dependency-zip.yml@main
with:
repository: /
main-branch:
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:
```yaml
jobs:
build:
runs-on: ubuntu-latest
needs: dependency-zip
steps:
- name: Fetch the release zip
if: ${{ needs.dependency-zip.outputs.use-release == 'true' }}
uses: robinraju/release-downloader@v1.10
with:
repository: /
latest: true
fileName:
- name: Download the zip from S3
if: ${{ ! needs.dependency-zip.outputs.use-release != 'true' }}
uses: the-events-calendar/action-s3-utility@main
env:
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: cp
FILE: ${{ needs.dependency-zip.outputs.s3-zip-name }}
DESTINATION:
```