Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
chore(template): sync with ahmadnassri/template-docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Nassri committed Oct 5, 2021
1 parent 66721d4 commit e96b125
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
53 changes: 53 additions & 0 deletions .github/workflows/pull_request_target.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# ------------------------------------------------------------- #
# Note: this file is automatically managed in template-template #
# ------------------------------------------------------------- #

on: pull_request_target

name: pull_request_target

jobs:
metadata:
runs-on: ubuntu-latest

outputs:
repository: ${{ steps.metadata.outputs.repository }}

steps:
- uses: actions/checkout@v2.3.4

- uses: ahmadnassri/action-metadata@v1
id: metadata

auto-merge:
timeout-minutes: 5

runs-on: ubuntu-latest

# only run for dependabot PRs
if: ${{ github.actor == 'dependabot[bot]' }}

steps:
- uses: ahmadnassri/action-dependabot-auto-merge@v2.4
with:
github-token: ${{ secrets.GH_TOKEN }}

template-sync:
needs: metadata

timeout-minutes: 20

runs-on: ubuntu-latest

# only run for templates
if: ${{ fromJSON(needs.metadata.outputs.repository).is_template }}

steps:
- uses: actions/checkout@v2.3.4
with:
ref: ${{ github.event.pull_request.head.ref }}
- uses: ahmadnassri/action-workflow-queue@v1.1
- uses: ahmadnassri/action-template-repository-sync@v1.6.0
- uses: ahmadnassri/action-workflow-queue@v1.1
with:
github-token: ${{ secrets.GH_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2.1.6
- uses: actions/cache@v2.1.4
with:
path: /tmp/.buildx-cache
key: buildx-${{ github.sha }}
Expand Down

0 comments on commit e96b125

Please sign in to comment.