galaxyproject/gxy.io (opens in new tab)
2 workflows
Triggers
pull_request_target
Jobs
| Job | Runs on | Steps | Actions used |
|---|---|---|---|
| Check rewrite function | ubuntu-latest | 3 | actions/checkout@v5 actions/github-script@v8 |
Raw YAML
name: Check
on:
pull_request_target:
types:
- opened
- synchronize
- reopened
jobs:
check:
name: Check rewrite function
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout PR code
uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Run check
run: ansible-playbook -i hosts check.yaml
- name: Post comment to PR
if: success() || failure()
uses: actions/github-script@v8
with:
script: |
const { execSync } = require('child_process');
const body = execSync('cat test-results.tap | ./.ci/tapview', { encoding: 'utf8' });
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: body
});
Last fetched:
Triggers
push workflow_dispatch
Jobs
| Job | Runs on | Steps | Actions used |
|---|---|---|---|
| Deploy rewrite function | ubuntu-22.04 | 4 | actions/checkout@v4 actions/setup-python@v5 |
Raw YAML
name: Deploy
on:
push:
branches:
- main
paths:
- 'group_vars/**'
- 'templates/lambda_function.py.j2'
workflow_dispatch:
jobs:
deploy:
name: Deploy rewrite function
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install boto3
run: pip install boto3
- name: Run deploy
run: ansible-playbook -i hosts lambda.yaml
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Last fetched: