Issue Created Workflow #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Issue Created Workflow | |
| on: | |
| issues: | |
| types: [opened] | |
| jobs: | |
| create_post: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Log issue details | |
| run: | | |
| echo "New issue created: ${{ github.event.issue.title }}" | |
| echo "Issue body: ${{ github.event.issue.body }}" | |
| echo "Opened by: ${{ github.event.issue.user.login }}" | |
| - name: Connect Tailscale | |
| uses: tailscale/github-action@v4.0.3 | |
| with: | |
| # Your Tailscale OAuth Client ID. | |
| oauth-client-id: ${{ secrets.TS_OAUTH_ID }}# optional | |
| # Your Tailscale OAuth Client Secret. | |
| oauth-secret: ${{ secrets.TS_OAUTH_CLIENT_SECRET }} # optional | |
| # Comma separated list of Tags to be applied to nodes. The OAuth client must have permission to apply these tags. | |
| tags: tag:gh-runner # optional | |
| - name: HTTP Request Action | |
| uses: fjogeleit/http-request-action@v1.16.5 | |
| with: | |
| # Request URL | |
| url: 'http://attack8-pc-2.elf-tyrannosaurus.ts.net:8000/create_for_issue' | |
| # Request Method | |
| method: 'POST' | |
| # Request Body as JSON String | |
| data: '{"issue": "${{ github.event.issue.number }}", "token": "${{ secrets.GH_TOKEN_SECRET }}", "repo": "${{ github.event.issue.repository_url }}"}' | |
| # Custom HTTP Headers | |
| customHeaders: '{"Content-Type": "application/json", "Accept": "application/json"}' | |
| ignoreSsl: true |