Skip to content

Commit

Permalink
continue-on-error
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Jul 31, 2024
1 parent 90ca2bd commit 33f340c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
options:
- conda
- conda-incubator
- conda-sandbox
default: conda
repo:
description: The repository to push the update workflow to.
Expand Down Expand Up @@ -38,15 +39,16 @@ jobs:
- name: (upstream) Remove repository from sync.yml
# no-op if the repository is not in the sync.yml file
continue-on-error: true
run: sed -i '\%${{ github.event.inputs.org }}/${{ github.event.inputs.repo }}$%d' upstream/.github/sync/config.yml

- name: (upstream) Commit changes
# no-op if there are no updates
continue-on-error: true
run: |
cd upstream
git add .
git commit --message "🤖 updated file(s)"
true
- name: (upstream) Create fork
# no-op if the repository is already forked
Expand Down Expand Up @@ -77,25 +79,25 @@ jobs:
- name: (downstream) Copy (overwrite) update.yml
# no-op if the latest file already exists in the downstream repository
continue-on-error: true
run: |
mkdir -p downstream/.github/workflows/
cp -f upstream/.github/workflows/update.yml downstream/.github/workflows/update.yml
true
- name: (downstream) Copy (do not overwrite) config.yml
# no-op if the file already exists in the downstream repository
continue-on-error: true
run: |
mkdir -p downstream/.github/template-files/
cp -n upstream/templates/config.yml downstream/.github/template-files/config.yml
true
- name: (downstream) Commit changes
# no-op if there are no updates
continue-on-error: true
run: |
cd downstream
git add .
git commit --message "🤖 updated file(s)"
true
- name: (downstream) Create fork
# no-op if the repository is already forked
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ jobs:

- name: Commit changes
# no-op if there are no updates
continue-on-error: true
run: |
git add .
git commit --message "🤖 updated file(s)"
true
- if: github.event.comment.body != '@conda-bot render'
name: Create fork
Expand Down

0 comments on commit 33f340c

Please sign in to comment.