diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 000000000000..ae2084b4006a --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,27 @@ +--- +# yamllint disable rule:line-length +name: OBS Helper + +on: [pull_request, push] + +jobs: + obs-url: + name: Report OBS URL + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - uses: actions/checkout@v4 + - name: debug + run: | + env | sort + - name: Create Status + env: + GH_TOKEN: ${{ secrets.GH_TOKEN_FOR_ACTIONS }} + run: | + gh api \ + --method POST \ + -H "Accept: application/vnd.github+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + /repos/perlpunk/openQA/statuses/$GITHUB_SHA \ + -f "state=success" -f "target_url=https://build.opensuse.org/project/subprojects/devel:openQA:GitHub:os-autoinst:openQA:${{ github.event.pull_request.number }}" -f "description=Check OBS SCM URL!" -f "context=continuous-integration/obs-helper"