Skip to content

Commit

Permalink
Merge pull request #31 from alliance-genome/hotfix-upgrade-pr-action
Browse files Browse the repository at this point in the history
  • Loading branch information
nuin authored Sep 29, 2024
2 parents 7168ba7 + 1562bfa commit b2facb6
Showing 1 changed file with 30 additions and 24 deletions.
54 changes: 30 additions & 24 deletions .github/workflows/flybase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,38 @@ on:
required: true

jobs:
update-conf:
flybase-update-conf:
runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write

steps:
- name: "Checkout Alliance BLAST Service Configuration"
uses: actions/checkout@v4
with:
path: agr_blast_service_configuration
- name: "Checkout FlyBase BLAST Configuration"
uses: actions/checkout@v4
with:
repository: flybase/blast-db-configuration
path: flybase-blast-db-configuration

- name: "Checkout FlyBase BLAST Configuration"
run: |
git clone https://github.com/FlyBase/blast-db-configuration.git flybase-blast-db-configuration
- name: "Checkout Alliance BLAST Service Configuration"
uses: actions/checkout@v4
with:
path: agr_blast_service_configuration

- name: Copy configuration files
run: |
cd flybase-blast-db-configuration/conf && \
tar cf - *.json | (cd ../../agr_blast_service_configuration/conf/FB/; tar xvBpf -)
- name: "Copy configuration files"
run: |
cd flybase-blast-db-configuration/conf && \
tar cf - *.json | (cd ../../agr_blast_service_configuration/conf/FB/; tar xvBpf -)
- name: Create PR for updated FlyBase conf files
uses: peter-evans/create-pull-request@v7
with:
add-paths: |
agr_blast_service_configuration/conf/FB/*.json
commit-message: ${{ github.event.inputs.FB-release }} BLAST config
branch: ${{ github.event.inputs.FB-release }}-blast-config-update
delete-branch: true
title: '[Update] ${{ github.event.inputs.FB-release }} BLAST config'
body: |
${{ github.event.inputs.FB-release }} BLAST config
draft: false
- name: "Create PR for updated FlyBase conf files"
uses: peter-evans/create-pull-request@v7
with:
path: agr_blast_service_configuration
add-paths: "conf/FB/*.json"
commit-message: ${{ github.event.inputs.FB-release }} BLAST config
branch: ${{ github.event.inputs.FB-release }}-blast-config-update
title: "[Update] ${{ github.event.inputs.FB-release }} BLAST config"
body: |
${{ github.event.inputs.FB-release }} BLAST config
delete-branch: true

0 comments on commit b2facb6

Please sign in to comment.