Skip to content

chore: allow the version update workflows to be triggered manually #114

chore: allow the version update workflows to be triggered manually

chore: allow the version update workflows to be triggered manually #114

name: Update Version for the PHP Tracer
on:
workflow_dispatch
schedule:

Check failure on line 5 in .github/workflows/php_tracer_update_version.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/php_tracer_update_version.yml

Invalid workflow file

You have an error in your yaml syntax on line 5
- cron: '0 14 * * *' # 2:00 PM UTC which is morning in New York
jobs:
bump_version:
runs-on: ubuntu-latest
permissions:
pull-requests: write
packages: write
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Modify build-packages
id: version
run: |
python .github/workflows/datadog_wrapper_tracer_update.py --tracer php
- name: Create Pull Request
id: pr
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: "php-tracer-version-bump"
commit-message: "${{steps.version.outputs.pr_title}}"
delete-branch: true
title: "${{steps.version.outputs.pr_title}}"
body: "${{steps.version.outputs.pr_body}}"
- name: Display output
run: |
echo "Pull Request Number - ${{ steps.pr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.pr.outputs.pull-request-url }}"