CD #3308
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CD | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 */6 * * *" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
cd: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: 25.0 | |
elixir-version: 1.14 | |
- run: make dependencies | |
- run: make build | |
env: | |
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: git config user.name "github-actions[bot]" | |
- run: git config user.email "github-actions[bot]@users.noreply.github.com" | |
- run: git add -A | |
- run: git diff-index --quiet HEAD || git commit -m "Update advisories from GitHub Advisory Database" | |
- run: git push origin HEAD |