-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2347 from demergent-labs/dep_bot
update workflow to build template on dependabot prs
- Loading branch information
Showing
2 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Build Templates | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- ready_for_review | ||
- reopened | ||
|
||
jobs: | ||
workflow-config: | ||
name: Determine workflow config | ||
runs-on: ubuntu-latest | ||
outputs: | ||
is-dependabot: ${{ steps.determine-workflow-config.outputs.is-dependabot }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- id: determine-workflow-config | ||
uses: ./.github/actions/determine_workflow_config | ||
with: | ||
is-workflow-dispatch: false | ||
exclude-slow-dispatch-input-value: false | ||
exclude-unstable-dispatch-input-value: false | ||
exclude-release-only-dispatch-input-value: false | ||
link-azle-dispatch-input-value: false | ||
|
||
build-templates: | ||
name: Build templates for Dependabot | ||
needs: workflow-config | ||
if: ${{ needs.workflow-config.outputs.is-dependabot == 'true' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
token: ${{ secrets.LASTMJS_GITHUB_TOKEN }} | ||
|
||
- uses: ./.github/actions/setup_node | ||
|
||
- uses: ./.github/actions/setup_dfx | ||
|
||
- run: npm install | ||
|
||
- name: Install global dependencies | ||
run: | | ||
AZLE_VERBOSE=true npx azle install-global-dependencies --rust --wasi2ic | ||
- name: Build stable template | ||
run: AZLE_VERBOSE=true npx azle template | ||
|
||
- name: Build experimental template | ||
run: AZLE_VERBOSE=true npx azle template --experimental | ||
|
||
- uses: ./.github/actions/commit_and_push | ||
with: | ||
branch-name: ${{ github.head_ref }} | ||
commit-message: 'chore: update templates for dependency changes' | ||
gpg_signing_key: ${{ secrets.GPG_SIGNING_KEY }} |